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.
It checks if the string was found since the string::find function return the pos of the letter which you searched for.
If it cannot find it, it returns string::npos which is a constant value with the greatest possible value of size_t.
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 →
It checks if the string was found since the string::find function return the pos of the letter which you searched for. If it cannot find it, it returns string::npos which is a constant value with the greatest possible value of size_t.