Answers for "bubble sort que es"

0

bubble sort que es

for (int i = 0; i < N; i++){
    for (int j = 0; j < N - 1; j++){
        if (conjunto[j] > conjunto[j + 1]){
            tmp = conjunto[j];
            conjunto[j] = conjunto[j + 1];
            conjunto[j + 1] = tmp;
        }
    }
}
Posted by: Guest on April-26-2022

Browse Popular Code Answers by Language