Skip to content

Commit 47b2ac9

Browse files
authored
Merge pull request #1507 from ivan1016017/january05
adding algo
2 parents 996849f + 563987e commit 47b2ac9

14 files changed

+2
-231
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ def twoSum(self, nums: List[int], target: int) -> List[int]:
1212
return [answer[v], k]
1313
else:
1414
answer[target - v] = k
15-
15+
1616
return []

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 & 16 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/two_sum_round_6.py

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

src/my_project/interviews/amazon_high_frequency_23/common_algos/two_sum_round_7.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: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
from typing import List, Union, Collection, Mapping, Optional
32
from abc import ABC, abstractmethod
43
import re
@@ -20,4 +19,4 @@ def isPalindrome(self, s: str) -> bool:
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 & 22 deletions
This file was deleted.

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

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

0 commit comments

Comments
 (0)