mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-30 16:31:08 +00:00
User input
This commit is contained in:
parent
0f1145ca7e
commit
f52470e5de
|
@ -22,7 +22,9 @@ def partition(A, p, r):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
A = [8, 4, 5, 7, 1, 2, 3, 6]
|
print('Enter values seperated by space:')
|
||||||
|
A = [int (item) for item in input().split(' ')]
|
||||||
|
# A = [23, 45, 43, 12, 67, 98, 123, 99]
|
||||||
# partition(A, 0, 7)
|
# partition(A, 0, 7)
|
||||||
print(A)
|
print(A)
|
||||||
quicksort(A, 0, 7)
|
quicksort(A, 0, 7)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user