-
Pre-processor derivative:
# include<bits/stdc++.h>,#include<iostream> -
standard library usage:
using namespace std; -
important data types:
- vector:
vector\<int\> v; - unordered map: `unordered_map<string, int> umap;
- ordered map:
map<int, int> order;
- vector:
-
Operations on vector:
v.push_back(x);,v.pop_back(); -
output all the vector elements:
for(int i = 0; i < v.size(); i++) cout<<v[i]<<"\n"; -
sort:
sort(v.begin(), v.end());
Tanmay-901/Cpp-Algorithms
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
Algorithms with better Time and Space complexity.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published