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.
if last element of set is what we are required to find, then how do we differentiate between the return of s.find(), as it should return s.end() in both the cases when there is no element found, or when the element being searched is the last element?
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 →
if last element of set is what we are required to find, then how do we differentiate between the return of s.find(), as it should return s.end() in both the cases when there is no element found, or when the element being searched is the last element?