Skip to content

Commit

Permalink
Merge pull request #3143 from sgrtye/fixFunctionSignature100
Browse files Browse the repository at this point in the history
Update function signature for 0100-same-tree.py
  • Loading branch information
Ykhan799 authored Oct 29, 2024
2 parents 7f07794 + 023aafb commit 1b70d66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/0100-same-tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


class Solution:
def isSameTree(self, p: TreeNode, q: TreeNode) -> bool:
def isSameTree(self, p: Optional[TreeNode], q: Optional[TreeNode]) -> bool:
if not p and not q:
return True
if p and q and p.val == q.val:
Expand Down

0 comments on commit 1b70d66

Please sign in to comment.