From de09c966b33f27aceef153ea4830860065743c4e Mon Sep 17 00:00:00 2001 From: northernSage Date: Wed, 17 Feb 2021 07:17:31 -0300 Subject: [PATCH] add header comment --- sorting/bubble_sort_2.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/sorting/bubble_sort_2.c b/sorting/bubble_sort_2.c index a14b7870..72c6fca6 100644 --- a/sorting/bubble_sort_2.c +++ b/sorting/bubble_sort_2.c @@ -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 #include -#define MAX 20 - -#include #include +#include + +#define MAX 20 /** * Bubble sort implementation