© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Pavan Kumar K
Developer
Selection sort : select the minimum and swap with a[i] O(n²) all cases for(int i = 0; i< n-1 ;i++){ int min = i; for(int j = i ; j<n;j++){ if(arr[j] < arr[min]){ min = j; } } swap(arr[min] , arr[i]); } B...
No responses yet.