Tag: algorithm
Delphi is a power RAD under Win32. I think one of the main strengths is that you can write inline assembly easily, which makes it very powerful and flexible. …
Windows batch script is less powerful, at least in my opinion, than the bash script under linux environment. However, with the latest OS like Win7, using batch allows to …
The problem is from codeforces: http://www.codeforces.com/problemset/problem/75/A The input two numbers can be held by 32-bit signed integer. Therefore, it is unnecessary to use arrays to represent numbers as strings. …
The problem is from codeforces: http://www.codeforces.com/problemset/problem/151/A Based on the Note, it is purely a math problem (the equations can be easily derived.) The Python solution can be easily obtained. …
Bogosort is a purely random sorting algorithm. It is inefficient because it is probablistic in nature. The algorithm is simple. Randoming shuffling the array until they are in order. …