You are viewing a single comment's thread. Return to all comments →
your code is only passing 3 test cases out of 10 . Don't post the code unless it pass all the test cases dude !!!!
bro, this is a discussion forum. Why are you demotivating a begineers ? Anyway I have submitted that code successfully.
Thanks for the advice.
I used the same logic, it passes most of the tests but I get timeout error.
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.
Would really appreciate your feedback like, dislike , comment etc. on my video.