Skip to content
This repository was archived by the owner on Sep 22, 2021. It is now read-only.

Commit fdf2ed0

Browse files
removed unused code
1 parent 1c40079 commit fdf2ed0

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

LeetCode/0859_Buddy_String.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
class Solution:
2-
@staticmethod
3-
def update_char_count(char, char_count):
4-
curr_char_count = char_count.get(char, 0)
5-
curr_char_count += 1
6-
char_count[char] = curr_char_count
7-
8-
9-
def buddyStrings(self, A: str, B: str) -> bool:
2+
def buddyStrings(self, A: str, B: str) -> bool:
3+
if len(A) != len(B):
4+
return False
105
char_count = {}
116
indexes_to_swap = []
127
dup = False

0 commit comments

Comments
 (0)