You are viewing a single comment's thread. Return to all comments →
can u explain why we are subracting i dont understand the if statement ......
I have uploaded a video tutorial which can help you to understand the problem as well as logic.
Here is the video tutorial for my solution O(n+m) complexity passed all test cases.
Would really appreciate your feedback like, dislike , comment etc. on my video.