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 »
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 »
Given a 2D array, print it in spiral form. See the following examples.
Given a linked list, write a function to reverse every k nodes (where k is an input to the function).
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.
Write an efficient C program to find the sum of contiguous subarray within a one-dimensional array of numbers which has the largest sum.
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 »