+ 1

Set Iterators

We can iterate all elements in a set using iterators... for example: set <int> s; . . . for (set<int> :: iterator it = s.begin(); it != s.end(); it++) what is the time complexity if we have n element in "s"? what does "it++" do exactly?

15th Jul 2019, 12:46 AM
Amin Anvari
Amin Anvari - avatar
1 ответ
13th Jul 2022, 9:20 AM
Mihir Lalwani
Mihir Lalwani - avatar