Tag: performance comparison
In , two equations are used and compare the efficiency of computation of the math constant . The following are some commonly-used equations to compute the We pick the …
November 26, 2012
assembly language, beginner, compiler, delphi, implementation, interpreter / compiler, profiler, programming languages, tools / utilities, tricks
In Delphi, you can use SizeOf to get the size of a type or any variable. The SizeOf function returns the storage size, in bytes, of either a Variable …
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 …
October 22, 2012
algorithms, brute force, code, code library, implementation, interview questions, math, programming languages, python, recursive, tricks
Q: List and compare the methods to compute where a, b, n are positive integers. A: We have four methods. The first one is to naively compute the value …
The problem is from codeforces: http://www.codeforces.com/problemset/problem/230/B The input of the numbers exceed a 4-byte integer, therefore, a long type (int64) should be used in Java. I feel like I …