mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-05-06 16:55:17 -04:00
Update has_path_sum.py
This commit is contained in:
parent
f6477288e1
commit
93c8e2abf7
1 changed files with 4 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
# author: bt3gl
|
||||
|
||||
def has_path_sum(root: Optional[TreeNode], target_sum: int) -> bool:
|
||||
|
||||
def transverse(node, sum_here=0):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue