My issue
Could someone explain why my code is flagged as wrong?
My code
A = input()
D= list(map(int,input().split()))
print(*sorted(D, reverse=True))
Problem Link: CodeChef: Practical coding for everyone
Could someone explain why my code is flagged as wrong?
A = input()
D= list(map(int,input().split()))
print(*sorted(D, reverse=True))
Problem Link: CodeChef: Practical coding for everyone
@adeebs2000
Cozz u have sorted the array and then print its reverse .
U have to simply reverse the unsorted array.