Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
copy_30-Seconds-of-C++
//g++ 5.4.0 #include<iostream> #include<vector> #include<algorithm> int main() { std::vector<int> origin {1, 2, 3}; std::vector<int> destination; std::copy(origin.begin(), origin.end(), std::back_inserter(destination)); // destination is now {1, 2, 3} for (auto value : destination) { std::cout << value << " "; } }
run
|
edit
|
history
|
help
0
cs
Caminho das Pontes
HeapSort
basic observation leads to dp OPTIMIZATION from O(n^3) to O(n^2) !!! (sopj : AMBLE)
C++
Heap DS and Heapsort
Lazy String Tokenizer Class
derive* -> gcc
How to get base class
kadane's algorithm 2