forked from TheAlgorithms/Python
-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit 540a2c3
Simplify Capitalize Function (TheAlgorithms#12879)
* Simplify the capitalize function using ASCII arithmetic to make the algorithm five times faster.
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update capitalize.py
* Update capitalize.py
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Maxim Smolskiy <mithridatus@mail.ru>1 parent 6ba4fa8 commit 540a2c3
1 file changed
+1
-6
lines changedLines changed: 1 addition & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | - | ||
2 | - | ||
3 | - | ||
4 | 1 |
| |
5 | 2 |
| |
6 | 3 |
| |
| |||
19 | 16 |
| |
20 | 17 |
| |
21 | 18 |
| |
22 | - | ||
23 | 19 |
| |
24 | 20 |
| |
25 | - | ||
26 | - | ||
21 | + | ||
27 | 22 |
| |
28 | 23 |
| |
29 | 24 |
| |
|
0 commit comments