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.
Great approach. Although I'm basically clueless why my approach timed out in all the testcases other than the first 4.
There are no recursions, no calculations of sum values at each stages.
Is it because I have retained the heights as lists as it was pre-coded?
Equal Stacks
You are viewing a single comment's thread. Return to all comments →
Great approach. Although I'm basically clueless why my approach timed out in all the testcases other than the first 4. There are no recursions, no calculations of sum values at each stages. Is it because I have retained the heights as lists as it was pre-coded?
Thanks.