We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d9c1be commit 65cf7b2Copy full SHA for 65cf7b2
1 file changed
Sprint-2/improve_with_precomputing/count_letters/count_letters.py
@@ -18,6 +18,9 @@ def count_letters(string: str) -> int:
18
count += 1
19
return count
20
21
+# The Space complexity for new and old script is O(n), but Time complexity the old one is O(n)^2 which is insufficient compare
22
+# to new code Time complexity O(n).
23
-def is_upper_case(letter: str) -> bool:
24
+
25
+def is_upper_case(letter: str) -> bool:
26
return letter == letter.upper()
0 commit comments