line 16 ,while(cur < replaceIndex) instead of 0 < replaceIndex, cuz replaceIndex should be less than cur.(nums[prv] > nums[cur])
@Kaafirpeado54-6ayesha2 күн бұрын
I didn't understand when to reverse and how we applied reverse, on what basis we do reverse,btw there are 2 reverse i understood second one but not 1st