Tag: iterative
When learning a new programming language (scripting or general), it is always better to try something easy, simple at first. My recommendation is to implement the Fibonacci computation, which …
We all know that the total number of solution to pick combination of n items out of m items is C(m, n), and sometimes denoted as or . We …
November 5, 2013
32 bit, algorithms, assembly language, c / c++, code, implementation, interpreter / compiler, optimization, programming languages, windows
Introduction You probably came across the term ‘Tail Recursion’ or ‘Tail Recursive’ before. You even have written a piece of Tail Recursive functions/algorithms without knowing it. So, what is …
Question: Implement integer square root for int sqrt(int x) There are many ways to compute the integer square root. But if you don’t bother, you can always cheat the compilers …
Question: Given an array and a element, remove all instances of that value in place and return the new length. The order of elements can be changed and it …