##
Check if two trees are Mirror
May 23, 2016

Given two Binary Trees, write a function that returns true if two trees are mirror of each other, else false. For example, the function should… Read More »

May 23, 2016

Given two Binary Trees, write a function that returns true if two trees are mirror of each other, else false. For example, the function should… Read More »

May 22, 2012

Given an array and a value, find if there is a triplet in array whose sum is equal to the given value. If there is… Read More »

August 20, 2011

Given a 2D array, print it in spiral form. See the following examples.

June 14, 2010

Given a linked list, write a function to reverse every k nodes (where k is an input to the function).

June 27, 2009

Mirror of a Tree: Mirror of a Binary Tree T is another Binary Tree M(T) with left and right children of all non-leaf nodes interchanged.

June 22, 2009

Write an efficient C program to find the sum of contiguous subarray within a one-dimensional array of numbers which has the largest sum.

May 30, 2009

Write a C program that, given an array A[] of n numbers and another number x, determines whether or not there exist two elements in… Read More »