Can anybody give me any corner-case for SHUFFLE problem of LTIME April 2020 Div - 2B, where this code might be giving wrong output !
7 6
3 1 1 1 1 1 1
Try this.
o/p is ‘yes’
Can u explain ur approach??
I have hashed all the numbers in increasing order with the index they will be placed after being sorted and have done the same thing as in subtask 1.