You are viewing a single comment's thread. Return to all comments →
My code is correct I believe. But it's getting timed out due to deepening recursion and probably the stack is blowing out for the larger test cases. Posting the link of the code..Can Anyone hep to shorten it? https://docs.google.com/document/d/1E2QaYdk8BjNJRczNkGTvEtPUr4W-rPdyY2Yqybg2Ymk/edit?usp=sharing
Equal Stacks
You are viewing a single comment's thread. Return to all comments →
My code is correct I believe. But it's getting timed out due to deepening recursion and probably the stack is blowing out for the larger test cases. Posting the link of the code..Can Anyone hep to shorten it? https://docs.google.com/document/d/1E2QaYdk8BjNJRczNkGTvEtPUr4W-rPdyY2Yqybg2Ymk/edit?usp=sharing