dsa notes all
dsa notes all
h>)
1. sort(v.begin(),v.end());
2. accumulate(v.begin(),v.end(),initial sum); // sum of all elements in vector
3. count(v.begin(),v.end() , value to be count)
4. find(v.begin(),v.end(),value to be found)
5. next_permutation(v.begin(), v.end());
6. auto it = max_element(v.begin(), v.end());
cout << "Max Element: " << *it;
7. reverse(v.begin(),v.end());
8. pow(base,exp)
9.