Created
September 11, 2018 19:17
-
-
Save completejavascript/8fbf9101e67737b1d2c07c06cde962fb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void InterChangeSort(int *a, int N) | |
{ | |
for(int i = 0; i < N - 1; i++) | |
for(int j = i + 1; j < N; j++) | |
if(a[j] < a[i]) | |
swap(a[j], a[i]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment