Category: algorithms
September 14, 2012
algorithms, batch script, beginner, brute force, github, implementation, programming languages, recursive, tools / utilities, tricks
I have used a lot the Fibonacci numbers as an example to illustrate the programming concepts and ideas. Today, I still use this to revisit the concepts of programming …
September 13, 2012
algorithms, batch script, beginner, games, images drawing, profiler, software design, string, technical, tools / utilities, windows command shell
Windows Batch Programming has been in existent for decades, ever since the first MS-DOS. The file extension that ends with *.bat will be interpreted by the DOS line by …
September 13, 2012
algorithms, batch script, beginner, code, code library, implementation, programming languages, string, tricks, windows, windows command shell
Under Linux, there is a famous quote: “When there is a shell, there is a way.”, meaning that the Linux SHELL script is very powerful and in fact can …
The problem is from codeforces http://codeforces.com/problemset/problem/221/B The problem statement is clear. The answer is to count the number of divisors that has at least one common digit with the …
In , the euclidean algorithms i.e. gcd and lcm are presented. Especially the gcd function, which computes the greatest common divisor, is fundamentally important in math and can be …