Skip to content

Commit

Permalink
Merge pull request bregman-arie#69 from bayangan1991/master
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
surister authored Jan 24, 2020
2 parents 15b2bca + fd2a185 commit a9a86ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3742,15 +3742,15 @@ Detailed answer can be found here: http://codingshell.com/python-all-string-perm
<details>
<summary>How to reverse a string? (e.g. pizza -> azzip)</summary><br><b>

Shortest way is:
The correct way is:

```
my_string[::-1]
```

But it doesn't mean it's the most efficient one. <br>
A more visual way is:<br>
<i>Careful: this is very slow</i>

The Classic way is:
```
def reverse_string(string):
temp = ""
Expand Down

0 comments on commit a9a86ad

Please sign in to comment.