What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-09 13:37:02
iterator vs enumerator
Iterators allow the caller to remove elements from the underlying collection during the iteration with its remove() method. You cannot add/remove elements from a collection when using enumerator. Enumeration is available in legacy classes i.e Vector/Sta... Add solution -
-
C++ 2021-09-08 21:32:02
queue reconstruction by height
#include <bits/stdc++.h> using namespace std; void print_vector(vector<vector<auto> > v){ cout << "["; for(int i = 0; i<v.size(); i++){ cout << "["; ... Add solution