1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2024-07-18 02:20:12 +02:00
programming-challenges/challenges/sorting-algorithms
2023-10-23 23:16:24 +02:00
..
solutions chore: better Prettier config for easier reviews 2023-10-23 23:16:24 +02:00
test feat(solutions): add sorting-algorithms/dart/bubble-sort 2021-06-29 22:38:17 +02:00
README.md docs(challenges): improvements to Constraints LaTeX/KaTeX syntax 2023-08-27 15:09:31 +02:00

sorting-algorithms

Created by @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.

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

  • n \leq 25 000

Source

Wikipedia - Sorting algorithm

Examples

See the test folder for examples of input/output.