9. bubble, selection, insertion SORT

Selection Sort O(N^2)

minimum uthake poore me se ith wale se swap maardo

---------------------------------------------------------------------------------------------------------------
                                                            
                                         Bubble Sort O(N^2)
max walo ko last m bhejdo...

-------------------------------------------------------------------------------------------------------------------------

Insertion Sort O(N^2)

front se chote chote array leke dekhte jao,
har baar ek se size badha do...
un chote arrays me piche se aage shift karte raho.
-------------------------------------------------------------------------------------------------------------

Comments

Popular posts from this blog

18. greedy algorithm

19. strings (LB)

17. BINARY SEARCH on 2d arrrays