c 2b 2b erase last element of set

Solutions on MaxInterview for c 2b 2b erase last element of set by the best coders in the world

showing results for - "c 2b 2b erase last element of set"
Marylou
05 Jan 2018
1st.erase(*st.rbegin());
2// or
3st.erase(prev(st.end()));