Update and rename has_path_sum.py to bt_has_path_sum.py

This commit is contained in:
marina 2023-08-03 13:17:12 -07:00 committed by GitHub
parent e7284b27e2
commit 5159d766d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# author: bt3gl # author: bt3gl
def has_path_sum(root: Optional[TreeNode], target_sum: int) -> bool: def has_path_sum(root: Optional[Node], target_sum: int) -> bool:
def transverse(node, sum_here=0): def transverse(node, sum_here=0):