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
I am also facing the issue!! Let me know if you were able to resolve it
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.
yes, me too. for the same value -1146467285.