Smart data structures and
dumb code works a lot better than the other way around





Sorting Technique

Bubble Sort

Bubble Sort

After completion of every pass largest number occupy its position

Linear Sort

Linear Sort

After completion of every pass smallest number occupy its position

Selection Sort

Selection Sort

In selection sort, find the smallest number from list and swipe it with lower bound.

Insertion Sort

Insertion Sort

In insertion sort the sorting will always start one index ahead from the lower bound