Programming through life
Ideas and tricks related to programming and computers in general.
Wednesday, February 27, 2013
SPOJ:Insertion Sort
›
The problem asks us to find the number of swaps an insertion sorts does, which in a way is a measure of efficiency of the sort. The basic...
Saturday, September 1, 2012
Modular Exponentiation
›
For performing exponentiation we can take the linear route or we can take the binary route. What is the main idea behind it Suppose you a...
Saturday, July 14, 2012
sieve of eratosthenes
›
Sieve of Erathosthenes : a find of quick ways to generate primes upto generally less than a million . below is the code for it . what t...
Permutations
›
Hey following is a method using backtracking to print all permutations of a number in C++. // A program using backtracking to generate pr...
‹
Home
View web version