Tag: C#
April 16, 2013
algorithms, beginner, c #, code, code library, floating point, implementation, math, optimization, programming languages, tricks
Mathematical function log10can be quite time consuming. If it is not available, for some languages such as VBScript, you have to compute it base on the fact. and therefore, we …
In , the readers would find that it is illegal to put a return statement in the finally block. Here, we will conduct experiments to check if the finally block will work …
Unlike Delphi, the string in C# is type of object. Therefore, you can reference the Length property to obtain the length of the string. However, when null value is …
The polygons can be regular or irregular. For example, The following idea is the easiest way to compute its area (signed) for any given simple 2-D polygons, even for …
The problem is from codeforces: http://www.codeforces.com/problemset/problem/236/A This simple problem can be solved easily. I use C# to practice the use of Hashset. Bruteforce O(n) each character and count the …