What do you want to save?
Add Code snippet
New code examples
-
C++ 2021-10-07 03:50:02
deque c++
/* A deque is a dynamic array whose size can be efficiently changed at both ends of the array. Like a vector, a deque provides the functions push_back and pop_back, but it also includes the functions push_front and pop_front. */ deque<int> d; d.p... Add solution -
C++ 2021-10-01 00:45:02
print all unique subsets
#include <iostream> #include <vector> #include <algorithm> using namespace std; // Function to print the elements of a vector void printVector(vector<int> const &out) { for (int i: out) &nbs... Add solution