Given an unsorted array of integers, print all distinct four elements tuple (Quadruplets) in it having given sum.
Given an unsorted array of integers, check if it contains four elements tuple (Quadruplets) having given sum.
The Data Encryption Standard (DES) is a symmetric-key algorithm for the encryption of electronic data. Although now considered insecure, it was highly influential in the advancement of modern cryptography.
Given a graph, check if given graph is bipartite graph or not. A bipartite graph (or bigraph) is a graph whose vertices can be divided into two disjoint sets U and V such that every edge connects a vertex in U to one in V.
Given a linked list, write a function which deletes any duplicate nodes from the list by traversing the list only once.
Find all N-digit numbers with equal sum. N varies from [1 to 9] and sum < = 81 (Maximum possible sum in a 9-digit number)
Convert a given binary tree to BST (Binary Search Tree) by keeping original structure of the binary tree intact.
Given an array where all its elements are sorted except two elements which were swapped, sort the array in linear time. Assume there are no duplicates in the array.
Implement Quicksort algorithm using Hoare’s Partitioning scheme.
Given a normal binary tree, convert it to Left-child right-sibling (LC-RS) binary tree.
Given an unsorted array of integers, find a triplet with given sum in it.
Implement your own diff utility. i.e given two similar strings, efficiently list out all differences between them.