Find Kth smallest element in BST(Binary Search Tree)

Find Kth smallest element in Binary Search Tree. Lets understand the problem statement correctly, What is the Input and the expected o...
Read More

Check if number is Power of Two.

C heck if number is power of 2 . Lets understand what is the input and the expected output. If the number given to you is, Case ...
Read More

Print all interleavings of given 2 string.

Print all interleaving of given 2 string . Lets understand what is the input and the expected output. Interleaved string contains...
Read More

Verify Preorder Sequence Of Binary Search Tree(BST)

Check if a given array can represent Preorder Traversal of Binary Search Tree. OR Check if given Preorder traversal is valid BST (Binary ...
Read More

Infinite loop in HashMap

Why HashMap should not be used in multi threaded environment? Can it cause infinite loop as well? When get method go to infinite loop in ...
Read More