mirror of
https://github.com/theoludwig/programming-challenges.git
synced 2024-11-09 22:08:58 +01:00
28 lines
717 B
Markdown
28 lines
717 B
Markdown
# sorting-algorithms
|
|
|
|
Created by [@theoludwig](https://github.com/theoludwig) on 29 June 2021.
|
|
|
|
## Instructions
|
|
|
|
In computer science, a sorting algorithm is an algorithm that puts elements of a list in a certain order.
|
|
We will use the [numerical order](https://en.wikipedia.org/wiki/Numerical_order).
|
|
|
|
Write a function that takes a list of integers and sort them in ascending order.
|
|
|
|
## Input
|
|
|
|
- **Line 1:** An integer `n` for the length of the list of integers
|
|
- **`n` next lines:** the numbers to sort
|
|
|
|
### Constraints
|
|
|
|
- List of integers length <= 25 000
|
|
|
|
## Source
|
|
|
|
[Wikipedia - Sorting algorithm](https://en.wikipedia.org/wiki/Sorting_algorithm)
|
|
|
|
## Examples
|
|
|
|
See the `test` folder for examples of input/output.
|