diff --git a/1001-1500/1002.py b/1001-1500/1002.py index 5ce0c72..586aaeb 100644 --- a/1001-1500/1002.py +++ b/1001-1500/1002.py @@ -9,4 +9,3 @@ def commonChars(self, words: List[str]) -> List[str]: res.remove(c) res = newRes return res - diff --git a/1501-2000/1512.py b/1501-2000/1512.py index 2fd4a2c..4862b1d 100644 --- a/1501-2000/1512.py +++ b/1501-2000/1512.py @@ -7,7 +7,6 @@ def numIdenticalPairs(self, nums): """ memory = {} count = 0 - for num in nums: if num in memory: if memory[num]==1: diff --git a/501-1000/576.py b/501-1000/576.py index edb59c2..1d0975e 100644 --- a/501-1000/576.py +++ b/501-1000/576.py @@ -19,7 +19,6 @@ def dfs(r,c,maxMove): (dfs(r,c+1,maxMove-1) + dfs(r,c-1,maxMove-1)) % M ) % M return mem[(r,c,maxMove)] - return dfs(startRow, startColumn, maxMove) # Recursive - TLE