When I try the same code on other IDEs I am getting 0 as output for -1146467285 but in interviewbit it is showing as error. Wht do I do
Getting correct output in other IDE but in Interview Bit it is showing error
jagrit
#3
Share your code. I will go through it, meanwhile check these cases in your code.
- Make sure terminating condition of while loop is A!=0.
- Check when integer overflows.