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

Commit eabee1b

Browse files
authored
Update 0389_FindTheDifference.py
I have edited the file and checked the solution in LeetCode website a 2nd time. The solution is being accepted by the website now.
1 parent ded0eff commit eabee1b

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

LeetCode/0389_FindTheDifference.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import sys
2-
31
class Solution:
4-
def FindTheDifference(self, s: str, t: str) -> str:
2+
def findTheDifference(self, s: str, t: str) -> str:
53
a = 0
64
b = 0
75
if 0 <= len(s) <= 1000:
@@ -12,9 +10,3 @@ def FindTheDifference(self, s: str, t: str) -> str:
1210
if 97 <= ord(letters) <= 122:
1311
b += ord(letters)
1412
return chr(b - a)
15-
16-
17-
s = sys.argv[1]
18-
t = sys.argv[2]
19-
solution = Solution().FindTheDifference(s,t)
20-
print(solution)

0 commit comments

Comments
 (0)