Can you please tell me where I am going wrong
Hey @haseebshaik00 by giving this input,
8
1 7 2 9 4 6 0 10
Expected output was
1 7 9 2 4 6 0 10
And your output is this :
still unable to pass 2 test cases
Share your updated code
With custom input this :
12
1 9 2 7 4 6 3 5 2 1 9 2
Itβs giving output of
9 1 9 2 7 4 6 3 5 2 1 2
And expected is
1 9 7 3 5 1 9 2 4 6 2 2