Shortest way to reverse a string in programming languages
My vote goes to Python: [::-1]
Can your's do better? Better here is "shorter"
(
6 comments
| 2 points
| on HN
)
Can your's do better? Better here is "shorter"
See http://rosettacode.org/wiki/Reverse_a_string for plenty of other examples.