Tag: coding exercise
Remember a couple days ago, I write a solution to this puzzle using Dynamic Programming (DP)? The DP solution helps to avoid duplicate computation in the sub-problems (smaller size). …
This is one of the classic DP (Dynamic Programming) exercises that you might be asked during your interview. To submit your solutions, you can visit LeetCode Online Judge. The …
February 26, 2014
c / c++, code, code library, floating point, implementation, linux, math, programming languages, tools / utilities, windows, windows command shell
The famous quote for Linux Shell is ‘Where there is a shell, there is a way’. It reflects that the Linux Shell (e.g. BASH) is so powerful that almost …
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 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 …