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.
Not sure what do you mean by gracefully but return statement should terminate the function returning the proper value, hence breaking the inner for loop, break on the other hand does not prompt the program to return anything, just interrupts the loop.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Hash Tables: Ransom Note
You are viewing a single comment's thread. Return to all comments →
Not sure what do you mean by gracefully but return statement should terminate the function returning the proper value, hence breaking the inner for loop, break on the other hand does not prompt the program to return anything, just interrupts the loop.