Advertisement
Guest User

past

a guest
Mar 30th, 2020
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include "sum_reverse_sort.h"
  2. #include "algorithm"
  3.  
  4. using namespace std;
  5.  
  6. int Sum(int x, int y) {
  7.     return x + y;
  8. }
  9. string Reverse(string s) {
  10.     string res = "";
  11.     for (size_t i = s.size() - 1; i > 0; i--) {
  12.         res += s[i];
  13.     }
  14.     res += s[0];
  15.     return res;
  16. }
  17. void Sort(vector<int>& nums) {
  18.     return sort(nums.begin(), nums.end());
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement