## Heap Sort

What is a heap? Heap data structure is an array that can be viewed as a complete binary tree. Which means each node of a tree corresponds to a element in array. Remember complete binary tree? Complete binary tree is… Continue Reading

Algorithms, Puzzles, Programming for Beginners

If you are given 4 red sticks of different heights placed from lower to higher height order and 4 green sticks of different heights placed from lower to higher height order. Task is to arrange red and green sticks together from… Continue Reading