code is getting compiled and even giving correct output for sample input…can you help debug my code
Wrong answer for all test cases
Hey @Sakshimalhan
Your logic is incorrect
You need to make updates in discontinuous ranges in cube
What you’re doing is assuming range updates will work which is unfortunately incorrect
This is a tricky question and I request you to see the editorial for this and learn and move on from this question
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.