atoi in C#

The atoi function in C# is used to convert a string representation of a number to its integer equivalent. In C#, the equivalent function is int.Parse() or int.TryParse(). The following is an example of how you can use int.Parse() to convert a string to an integer: And here’s an example of how you can use … Read more

Coding Patterns in C# and Python for Coding Interviews (M/H)

Note: this post is being updated progressively. 1. Sliding window Problem: Given a string s, find the length of the longest substring without repeating characters. C# Runtime: 84 ms, faster than 80.08% of C# online submissions for Longest Substring Without Repeating Characters. Time Complexity : O(n) Space Complexity: O(n) Python 3 Runtime: 64 ms, faster than 65.71% of Python3 online submissions for Longest Substring … Read more

Testing basics in .NET

The idea of testing a .NET application is introduced in this article, it shows how various kinds of tests could be used to evaluate and validate code. Different tools, such as .NET CLI or Integrated Development Environments, are available to test .NET applications. A perfect way to ensure that the software code does what its developers … Read more

Google C# Style Guide

This style guide is for C# code developed internally at Google, and is the default style for C# code at Google. It makes stylistic choices that conform to other languages at Google, such as Google C++ style and Google Java style. Source : Formatting guidelines Naming rules Naming rules follow Microsoft’s C# naming guidelines. Where … Read more

Open chat
Powered by