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 was testing my code (in an old computer) with 10k items in each stack and my running time was alittle over 14 seconds, after switching array_shift for array_pop my runing time is now something arround 110 ms :O!!!
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Equal Stacks
You are viewing a single comment's thread. Return to all comments →
Thanks Sebastian.
I was testing my code (in an old computer) with 10k items in each stack and my running time was alittle over 14 seconds, after switching array_shift for array_pop my runing time is now something arround 110 ms :O!!!