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