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.
but what is the time complexity of IndexOf? I tried looking it up but can't find it. If it's high it may not be as fast you say. How does IndexOf work, under the hood?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Two Strings
You are viewing a single comment's thread. Return to all comments →
but what is the time complexity of IndexOf? I tried looking it up but can't find it. If it's high it may not be as fast you say. How does IndexOf work, under the hood?