Created
September 15, 2019 14:34
-
-
Save ChaitanyaBaweja/d39c1cbe4e5fe7fb3b27d2484c942c0c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Method | Execution Speed | |
---|---|---|
Slicing | 0.111 μs | |
Appending characters | 0.359 μs | |
Using reversed() | 0.429 μs | |
Built-in reverse() function | 0.434 μs | |
Recursion | 1.0199 μs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment