Showing posts with label Interviews. Show all posts
Showing posts with label Interviews. Show all posts

Selection Sort

Selection Sort Given a array of integers, Sort it. Lets understand what is the input and the expected output. Overview Sel...
Read More

Insertion Sort

Insertion Sort Given a array of integers, Sort it. Lets understand what is the input and the expected output. Example Assume...
Read More

Bubble Sort

Bubble Sort (Sinking sort) Given a array of integers, Sort it. Lets understand what is the input and the expected output. Alg...
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