Give the code for selection sort. — for (i = 0; i < n; ++i) { min_index = i: for (j = i; j < n; ++j) { if (a[j] < a[min_index]) { min_index = j; } } swap(a, i, min_index) }
G
1.2K
Google Interview
This flashcard deck made by jwasham contains knowledge about google interview. For more details, please follow https://github.com/jwasham/google-interview-university