why I am getting wrong answer error??? While it is giving write answer in my compiler?
problem link-CodeChef: Practical coding for everyone
Here is a link to my solution : Link
I didn’t catch the mistake in your code but it isn’t an efficient approach as it will give TLE if the constraints were high!
If you need any further help, feel free to ask
thanks…