## rotate a matrix by 90 degrees

Given an N X M integer matrix, rotate it bye 90 in c clock wise. for example if input matrix is 1 2 3 8 4 5 6 7...

## How to read input in programming contest

Reading input in programming contest is one of the hurdle for beginner. How ever it is an easy task. Let us see the below statement. Problem statement: First line...

## The “3n + 1” problem

This problem is from http://www.programming-challenges.com/english/pdfs/110101.pdf. explanation: Consider the following algorithm to generate a sequence of numbers. Start with an integer n. If n is even, divide by 2. If...