Skip to content

Commit aff7cb2

Browse files
authored
tim
1 parent cacc19e commit aff7cb2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tim_sort.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#Tim sort
2+
3+
import random
4+
5+
arr = [random.randint(1, 100) for x in range(10)]
6+
7+
print("Unsorted array:", arr)
8+
9+
arr.sort()
10+
11+
print("Sorted array:", arr)

0 commit comments

Comments
 (0)