Skip to content

Commit 3c2f97b

Browse files
meatball133BethanyG
authored andcommitted
fix
1 parent 3d71486 commit 3c2f97b

File tree

1 file changed

+1
-1
lines changed
  • exercises/practice/rotational-cipher/.articles/performance

1 file changed

+1
-1
lines changed

exercises/practice/rotational-cipher/.articles/performance/content.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ rotate recursion short : 5.4000120144337416e-06
3030
## Conclusion
3131

3232
For a long string as input, the `str.translate` approach the fastest, followed by ascii, alphabet, and finally recursion.
33-
For a short string as input, is the alphabet approach the is the fastest, followed by ascii, recursion and finally `str.translate`.
33+
For a short string as input, is the alphabet approach the fastest, followed by ascii, recursion and finally `str.translate`.
3434

3535
This means that if you know the input is a short string, the fastest approach is to use the alphabet, and forgo the overhead of making and saving a translation dictionary.
3636
On the other hand, if the input is a long string, the overhead of making a dictionary is amortized over the length of the text to be translated, and the fastest approach becomes `str.translate`.

0 commit comments

Comments
 (0)