Skip to content

Instantly share code, notes, and snippets.

View 1RodrigoSoares's full-sized avatar
🙂

Rodrigo Soares 1RodrigoSoares

🙂
  • Juiz de Fora - MG
View GitHub Profile
@1RodrigoSoares
1RodrigoSoares / .cpp
Created June 13, 2023 17:55
BubbleSort
void bubbleSort(int array[], int size) {
for (int i = 0; i < size - 1; i++) {
for (int j = 0; j < size - i - 1; j++) {
if (array[j] > array[j + 1]) {
int temp = array[j];
array[j] = array[j + 1];
array[j + 1] = temp;
}
}
}