Why my test cases are failing?

def quicksort(arr):
if len(arr) <= 1:
return arr
pivot = arr[len(arr) // 2]
left = [x for x in arr if x < pivot]
middle = [x for x in arr if x == pivot]
right = [x for x in arr if x > pivot]
return quicksort(left) + middle + quicksort(right)

n = int(input())
x = input()
arr = x.split()

arr = (quicksort(arr))
for a in arr:
print(f"{a} ",end=’’)

hey @ChiteshBansal ,
what error does it shows on failing ?

Not showing any error , even the sample test is passing but one of the test case is failing I don’t know why

it might be showing something , like wrong output , time limit reached or something.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.