5 ms·
that is little verbose, you can save a whole 7 characters. reverse(begin(str), end(str));
by yngccc 13y ago
that is little verbose, you can save a whole 7 characters.
reverse(begin(str), end(str));
- r-s 13y agoalso you will need #include <algorithm>