Tag: code
Quick Sort is a comparison sorting method, on average, the complexity is . In worst cases, e.g. when the array of elements are already sorted, it is degraded into …
Recently, I have been working on a project that involves C# and Delphi. The C# is used develop the GUI-related application and the Delphi code provides a COM (Component …
The problem is from codeforces: http://www.codeforces.com/problemset/problem/26/A The input range is small which means even the worst brute-force methods can pass the test. The straightforward implementation is . Defining a …
July 2, 2012
algorithms, beginner, brute force, code, implementation, math, programming languages, python, technical, tricks
This article will describe a quick and easy implementation of a algorithm that divides two integers with a high precision. Normally, an array is required to hold the results …
July 1, 2012
algorithms, beginner, code, code library, implementation, interview questions, math, programming languages, python, technical
GCD (Greatest Common Divisor), in mathematics, is refered to the largest number that divides two or more non-zero integers without a remainder. For example, the GCD of 8 and …