Skip to content

Commit 8d9301f

Browse files
authored
Merge pull request #1491 from ivan1016017/december20
adding algo
2 parents 1bca51a + c73fdc9 commit 8d9301f

9 files changed

Lines changed: 2 additions & 159 deletions

File tree

src/my_project/interviews/amazon_high_frequency_23/common_algos/two_sum_round_2.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/my_project/interviews/amazon_high_frequency_23/common_algos/two_sum_round_3.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/my_project/interviews/amazon_high_frequency_23/common_algos/two_sum_round_4.py

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/my_project/interviews/amazon_high_frequency_23/common_algos/two_sum_round_5.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/my_project/interviews/amazon_high_frequency_23/common_algos/valid_palindrome_round_1.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@ def isPalindrome(self, s: str) -> bool:
1212
s = re.sub(pattern=r'[^a-zA-Z0-9]', repl='', string=s)
1313

1414
# Determine if s is palindrome or not
15-
1615
len_s = len(s)
1716

1817
for i in range(len_s//2):
19-
18+
2019
if s[i] != s[len_s - 1 - i]:
2120
return False
2221

23-
return True
22+
return True

src/my_project/interviews/amazon_high_frequency_23/common_algos/valid_palindrome_round_2.py

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/my_project/interviews/amazon_high_frequency_23/common_algos/valid_palindrome_round_3.py

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/my_project/interviews/amazon_high_frequency_23/common_algos/valid_palindrome_round_4.py

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/my_project/interviews/amazon_high_frequency_23/common_algos/valid_palindrome_round_5.py

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)