Skip to content

Commit f52470e

Browse files
committed
User input
1 parent 0f1145c commit f52470e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

QuickSort.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ def partition(A, p, r):
2222

2323

2424
if __name__ == "__main__":
25-
A = [8, 4, 5, 7, 1, 2, 3, 6]
25+
print('Enter values seperated by space:')
26+
A = [int (item) for item in input().split(' ')]
27+
# A = [23, 45, 43, 12, 67, 98, 123, 99]
2628
# partition(A, 0, 7)
2729
print(A)
2830
quicksort(A, 0, 7)

0 commit comments

Comments
 (0)