## print matrix in wave form

Write a c program to print a given matrix in wave format. for example give a matrix like below. The output should be 1 6 4 7 7...

## sudoku problem solver using recursive backtracking

Sudoku is a number puzzle consisting of a 9 x 9 grid , and rules of filling the grid with numbers ranging from 1 to 9 such that every...

## Traverse matrix in spiral form

Write a c program to print the elements of a 2D array or matrix in spiral order. for example look at the below matrix The output should be 1...

## Zigzag matrix traversing

zigzag matrix traversing Given an square matrix of size NxN , traverse the matrix in zig zag order. for example see the below matrix as input of your program....

## 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...