Solution to different competitive programming problems across codechef, spoj, Hackerearth and Topcoder.