Given an array of pairs of integers, find all symmetric pairs i.e. pairs that are mirror of each other. For instance, pairs (x, y) and (y, x) are mirrors of each other. Get great deals at Amazon
Write a efficient algorithm to construct the longest palindrome by shuffling or deleting characters from a given string.
Given an array and an integer k, find the count of distinct elements in every sub-array of size k in the array.
Given an array of integers, print all maximum size sub-arrays having all distinct elements in them.
Given an array of integers, find minimum index of a repeating element in linear time and doing just one traversal of the array.
Given a collection of integers, develop an algorithm to find the index of maximum occurring element with equal probability.
Given an array of integers, check if an array is formed by consecutive integers.
Given an unsorted array of integers, find two non-overlapping pairs in it having same sum.
Given a binary tree, write an efficient algorithm to print right view of given binary tree.
Given an array of integers, find subarrays with given sum in it.
Given a binary tree, write an iterative algorithm to print leaf to root path for every leaf node of binary tree. Use of Recursion is prohibited.
Given a binary search tree, find a pair with given sum present in it.