https://github.com/mrvideo/sorts
A collection of sorting algorithms written in C.
https://github.com/mrvideo/sorts
Last synced: about 2 months ago
JSON representation
A collection of sorting algorithms written in C.
- Host: GitHub
- URL: https://github.com/mrvideo/sorts
- Owner: MrVideo
- License: gpl-3.0
- Created: 2022-06-04T15:40:39.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-26T08:39:17.000Z (almost 4 years ago)
- Last Synced: 2025-03-11T00:48:31.895Z (over 1 year ago)
- Language: C
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sorts
## A collection of sorting algorithms written in C
This is a small collection of C programs to explain the most common sorting algorithms and their time complexity.
Each program contains a random number generator to fill an array that will then be ordered and printed.
## Compilation
I used a custom header file to avoid rewriting the same functions over and over, so, to compile a specific program, use the shell command:
```shell
clang -o filename filename.c array_functions.c
```
## Library
You can use the library I included in this repository in your project. Make sure you include it in your code and use it according to the [license](https://github.com/MrVideo/sorts/blob/main/LICENSE) provided with the repository.