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.
built-in stack is heavily memory limited, while explicitly declared one is not. Also recursion will place additional overhead information on native stack. Explicit stack will only put values there, while native one will put parameters as well as function name on that stack. On top of that recursion is horrendously annoying to debug in bigger environment.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Print in Reverse
You are viewing a single comment's thread. Return to all comments →
built-in stack is heavily memory limited, while explicitly declared one is not. Also recursion will place additional overhead information on native stack. Explicit stack will only put values there, while native one will put parameters as well as function name on that stack. On top of that recursion is horrendously annoying to debug in bigger environment.