My issue
i am not able to submit the answers
My code
def quick_sort(arr):
if len(arr) <= 1:
return arr
pivot = arr[0]
left = []
right = []
for element in arr[1:]:
if element < pivot:
left.append(element)
else:
right.append(element)
return quick_sort(left) + [pivot] + quick_sort(right)
t = int(input())
for _ in range(t):
N = int(input())
A = list(map(int, input().split()))
sorted_array = quick_sort(A)
print(*sorted_array)
Learning course: Kalasalingam Academy of Research and Education
Problem Link: CodeChef: Practical coding for everyone