We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I am unsure what you mean by this. I am not an expert python programmer. Could you suggest further sources / examples where I can read up on what you mean? I created a function as described, with the non-recursive version of the algorithm. However, I am still facing the timeout issue in case 5. I am also using O(2m) additional memory.
Are there any other optimizations that I am missing?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Common Child
You are viewing a single comment's thread. Return to all comments →
I am unsure what you mean by this. I am not an expert python programmer. Could you suggest further sources / examples where I can read up on what you mean? I created a function as described, with the non-recursive version of the algorithm. However, I am still facing the timeout issue in case 5. I am also using O(2m) additional memory.
Are there any other optimizations that I am missing?