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 used your way for solving this question,but it is coming as timeout for cases involoving large data,can anyone lpease tell me a efficent way to do this question using same logic
//after rev stack and seperately checking for only 1 element
for(i=1;i
Equal Stacks
You are viewing a single comment's thread. Return to all comments →
I used your way for solving this question,but it is coming as timeout for cases involoving large data,can anyone lpease tell me a efficent way to do this question using same logic //after rev stack and seperately checking for only 1 element for(i=1;i