mirror of
https://github.com/theoludwig/programming-challenges.git
synced 2024-11-09 22:08:58 +01:00
feat(solutions): add sorting-algorithms/python/function
This commit is contained in:
parent
b70b089702
commit
d16d026672
@ -0,0 +1,3 @@
|
||||
# sorting-algorithms/python/function
|
||||
|
||||
Created by [@Divlo](https://github.com/Divlo) on 30 June 2021.
|
@ -0,0 +1,11 @@
|
||||
from typing import List
|
||||
import sys
|
||||
|
||||
numbers: List[int] = []
|
||||
for value in sys.stdin:
|
||||
numbers.append(int(value.rstrip('\n')))
|
||||
|
||||
numbers = numbers[1:]
|
||||
sorted_numbers = sorted(numbers, key=int)
|
||||
for number in sorted_numbers:
|
||||
print(number)
|
Loading…
Reference in New Issue
Block a user