C++ Program-K’th smallest element in BST using O(1) Extra Space
K’th smallest element in BST using O(1) Extra Space - Binary Search Tree - Given a Binary Search Tree (BST) and positive...
K’th smallest element in BST using O(1) Extra Space - Binary Search Tree - Given a Binary Search Tree (BST) and positive...
C++ Algorithm - Write a program function to detect loop in a linked list - Linked List - Given a linked list, check if the...
C++ Algorithm - The Stock Span Problem - Stack - The stock span problem is a financial problem where we have a series of n...
Cpp Algorithm - Write a function to reverse a linked list - Linked List - Given pointer to the head node of a linked list,...
Given two Linked Lists, create union and intersection lists that contain union and intersection of the elements present in...
Given two arrays: arr1[0..m-1] and arr2[0..n-1]. Find whether arr2[] is a subset of arr1[] or not. Both the arrays are not...
An efficient solution based on hash map is discussed. We need to check the Horizontal Distances from root for all nodes and...
A Simple Solution is to one by one process all appointments from second appointment to last. For every appointment i, check...
Given two positive integers n and k, print all increasing sequences of length k such that the elements in every sequence are...
Given a snake and ladder board, find the minimum number of dice throws required to reach the destination or last cell from...
Our site uses cookies. By using this site, you agree to the Privacy Policy and Terms of Use.