Hi sir,
I tried to test my code with another input but it gave me the wrong answer. What’s wrong with my code?
Thanks for your help.
DNF Sort - Wrong answer
hello @halihoof
use if -else if-else
reason is ,by using if-elseif -else we will be performing only one operation/updation per iteration,
which we r not able to maintain using if - if -if
1 Like