green flag to reset and update length turbo mode is recommended for long lists, shift press green flag
worse selectionsort unstable not adaptive space - O(n) for reversing, there are inplace ways of doing it i just didnt want to make one time compl - O(n^2) reverse 0-max idx then reverse 0-i this is just an inefficient way of putting max idx at i eg: [4, 7, 2, 6, 5] [4, 7, 2, 6, 5] __m______i [7, 4, 2, 6, 5] __m______i [5, 4, 2, 6, 7] [5, 4, 2, 6, 7] ______mi [5, 4, 2, 6, 7] m____i [2, 4, 5, 6, 7] [2, 4, 5, 6, 7] __mi