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.
Agreed! For a high-volume website, however, we cannot bet on the worst-case of O(n*n) even if it has a mere chance of 0.01%, especially when millions of searches are conducted per day. FYI, 1 million multiplied by 0.01% = 100.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Luck Balance
You are viewing a single comment's thread. Return to all comments →
Agreed! For a high-volume website, however, we cannot bet on the worst-case of O(n*n) even if it has a mere chance of 0.01%, especially when millions of searches are conducted per day. FYI, 1 million multiplied by 0.01% = 100.