Tag: recursion
Haskell is the functional programming language (FP). FP allows users to write code in high level abstraction without considering too much implementation details. For example, the recursion is generally …
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 …
Linux BASH shell is very powerful. You must have heard of “where there is a shell, there is a way”. We can write a script that recursively changes all …
September 5, 2014
algorithms, beginner, c / c++, code, code library, math, optimization, programming languages, recursive, tricks
We all know the formula to compute value e (mathematical constant that is the base of the natural logarithm) is e = 1 + 1/1!+ 1/2!+ .....+ 1/n! Now, …
The combination is a frequently-used technique that choose a number of items from a whole data set (sequence is not important). For example, to choose 2 items from 3, …