Category: c / c++
CodeBlocks is a open source, free C/C++ IDE that just works across platforms. The create-project wizard is so easy to use and it gives you a very good starting …
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, …
Pascal Triangle is a triangle made of numbers. The first row (root) has only 1 number which is 1, the second row has 2 numbers which again are 1 …
Almost every programmer needs to write a function to reverse a given string and this exercise is kinda a favourite question in first round interviews. To reverse a string, …
Quite often, we need to loop an array but dealing with continuous two elements at each iteration. This sounds an easy task and one can usually pay attention to …