February 18, 2014
algorithms, beginner, brainfuck, c / c++, code, code library, data structure, implementation, programming languages, string
The problem is from LeetCode Online Judge . The puzzle appears to be the most-favourite interview questions. It asks you to implement an algorithm to check if a given …
February 18, 2014
8 bit, algorithms, hardware, math, monte carlo, Monte Carlo Simulation, Monte Carlo Simulation Algorithm, Nintendo Entertainment System, Subor, vbscript
Have you ever wondered how fast is a 8-bit CPU (such as 6502 used by famicom and the clones)? Well, i can’t have a direct comparison for you for …
We all know the area of a circle is computed as . Suppose the radius is ONE for simplicity to compute the value of , we can have the …
February 15, 2014
32 bit, algorithms, beginner, c / c++, code, code library, implementation, linux, math, programming languages, windows
If you are a linux user, you may know this ‘useless’ command factor which will print the prime factors of given positive integers on command line. On execution, the factor will …
February 15, 2014
16 bit, 32 bit, 64 bit, beginner, c / c++, code, code library, console, implementation, programming languages
In the DOS era, where 16-bit applications are dominant, the DOS compilers such as Turbo C, Borland Pascal provide many utilities/methods/functions related to keyboard and screen. To check a …