Tag: algorithm
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 …
August 13, 2014
apache server, code, code library, implementation, internet, php, programming languages, SEO, webhosting, wordpress
PHP is a very popular programming language for the web. It is a convenient and powerful, loosely typed programming language that you can pick up and use within a …
May 7, 2014
algorithms, code, code library, data structure, implementation, programming languages, sorting, VBA, vbscript, windows, windows scripting host
Among the simple sorting algorithms, the insertion sorting algorithm is my favourite. Insertion sort is simple to implement and gives an average quadratic O(n2) running time, like other simple …
If we want to know whether a given string has repeated characters, the simplest way is to use the existing method of finding first occurrence from the end of …