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.
Although I pass all the tests,I still find certain situation that might be wrong using find function.
What if the element isn't in the set,the find function will eventually return an iterator to the end,but if the element is just at the end of the set,the find function also will return an iterator to the end.There is no way to distinguish between the two cases using the find() function alone.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Sets-STL
You are viewing a single comment's thread. Return to all comments →