Getting MLE error on test case 1, while submitting at hackerblocks while the function was working correctly on leetcode.
Leetcode submission link: “https://leetcode.com/submissions/detail/366669726/”
Getting MLE error on test case 1, while submitting at hackerblocks while the function was working correctly on leetcode.
Leetcode submission link: “https://leetcode.com/submissions/detail/366669726/”
Sorry it is TLE not MLE
This passes all tests https://ide.codingblocks.com/s/286006
just pass vector by reference for next() function.
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.