Sorting: Selection Sort Finding minimum element from unsorted part and putting at beginning Algo maintain two subarray One which is sorted and Other remaining which are not sorted Complexity O(n2) Bubble Sort Repeatedly swapping adjacent elements if they are in wrong order Complexity O(n2) Insertion Sort Putting element at correct location Done as we do... Continue Reading →


Create a website or blog at

Up ↑