mirror of
https://github.com/TheAlgorithms/C
synced 2024-11-24 22:39:52 +03:00
add header comment
This commit is contained in:
parent
366724b585
commit
de09c966b3
@ -1,9 +1,18 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* @brief implementation of [Bubble sort](https://en.wikipedia.org/wiki/Bubble_sort) algorithm
|
||||||
|
* @details
|
||||||
|
* worst-case: O(n^2)
|
||||||
|
* best-case: O(n)
|
||||||
|
* average-complexity: O(n^2)
|
||||||
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#define MAX 20
|
|
||||||
|
|
||||||
#include <stdbool.h>
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
#include <stdbool.h>
|
||||||
|
|
||||||
|
#define MAX 20
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bubble sort implementation
|
* Bubble sort implementation
|
||||||
|
Loading…
Reference in New Issue
Block a user