found this ques on codemonk. getting wrong answer for a test case. kindly check if my code is wrong or the problem has some error.
Https://www.hackerearth.com/challenges/competitive/codemonk-sorting/algorithm/monk-being-monitor/description/
hi @niketagarwal10 i am unable to make a submission here. In the output format it is given that
you should print “1” if the given difference does not exist, try to print 1 wherever you are printing -1
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.