Skip to content

for learning to contribute #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion 1001-1500/1002.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ def commonChars(self, words: List[str]) -> List[str]:
res.remove(c)
res = newRes
return res

1 change: 0 additions & 1 deletion 1501-2000/1512.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ def numIdenticalPairs(self, nums):
"""
memory = {}
count = 0

for num in nums:
if num in memory:
if memory[num]==1:
Expand Down
1 change: 0 additions & 1 deletion 501-1000/576.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down