Tag: code
The problem is from codeforces: http://codeforces.com/contest/265/problem/A This is a pure simulation problem, no difficulty at all. If the current instruction matches the colour on the current stone, move one position …
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 …