Getting correct output in other IDE but in Interview Bit it is showing error


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.

  1. Make sure terminating condition of while loop is A!=0.
  2. Check when integer overflows.


yes, me too. for the same value -1146467285.