Given a Binary Tree, convert it into its mirror.
The first line of input contains T denoting the number of testcases. T testcases follow. 240 more words
Given an array of positive and negative numbers, arrange them in an alternate fashion such that every positive number is followed by negative and vice-versa maintaining the order of appearance. 154 more words
Given an array of positive numbers, find the maximum sum of a subsequence with the constraint that no 2 numbers in the sequence should be adjacent in the array. 117 more words