Not able to pass test case 0 and 1
@jatin111,
https://ide.codingblocks.com/s/231446 corrected code.
I have also commented a lot of redundant lines in your code. Your logic is correct. Just use long everywhere instead of int.
@jatin111,
https://ide.codingblocks.com/s/231446 corrected code.
I have also commented a lot of redundant lines in your code. Your logic is correct. Just use long everywhere instead of int.