I tried solving, It is NOT THE right approach in Update function
Approach of the solution in video is not correct
Hey @sarthakbuddy
I can assure you buddy each solution is tested and submitted on SPOJ before writing it down in the tutorial. Maybe you copied the code incorrectly somewhere. Try again. Otherwise you can send your code and I can have a look at it.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.