©️Advanced C Autograding
Discover the advanced autograding options for C assignments
©️Create your first C assignment





Check Unit Tests
#ifndef BUBBLESORT_H
#define BUBBLESORT_H
void bubbleSort(int arr[], int n);
#endif // BUBBLESORT_H#include "bubble_sort.h"
void bubble_sort(int arr[], int n) {
int i, j, temp;
for (i = 0; i < n-1; i++) {
for (j = 0; j < n-i-1; j++) {
if (arr[j] > arr[j+1]) {
// Swap arr[j] and arr[j+1]
temp = arr[j];
arr[j] = arr[j+1];
arr[j+1] = temp;
}
}
}
}"cg junitxml" command

Instructions

Clang-tidy
"cg comments" command


Instructions

Last updated