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.
when u use declare globally it will use stack memory but when u declare it locally it cannot use stack memory and it will only use heap memory which is not enough for the 5th test case..so segfault is expected :)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Common Child
You are viewing a single comment's thread. Return to all comments →
when u use declare globally it will use stack memory but when u declare it locally it cannot use stack memory and it will only use heap memory which is not enough for the 5th test case..so segfault is expected :)