Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
yngccc
· 13y ago · 0 comments
that is little verbose, you can save a whole 7 characters.
reverse(begin(str), end(str));
Comments
[–]
r-s
13y ago
also you will need #include <algorithm>