Skip to content
This repository was archived by the owner on Sep 22, 2021. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
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.
  • Loading branch information
Sounakde authored Nov 1, 2020
commit eabee1b0320242e977f1d65b7bb2459e75d87d91
10 changes: 1 addition & 9 deletions LeetCode/0389_FindTheDifference.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import sys

class Solution:
def FindTheDifference(self, s: str, t: str) -> str:
def findTheDifference(self, s: str, t: str) -> str:
a = 0
b = 0
if 0 <= len(s) <= 1000:
Expand All @@ -12,9 +10,3 @@ def FindTheDifference(self, s: str, t: str) -> str:
if 97 <= ord(letters) <= 122:
b += ord(letters)
return chr(b - a)


s = sys.argv[1]
t = sys.argv[2]
solution = Solution().FindTheDifference(s,t)
print(solution)