From 93c8e2abf716d63f979828f805e78b1543753832 Mon Sep 17 00:00:00 2001 From: bt3gl <138340846+bt3gl-google@users.noreply.github.com> Date: Sun, 30 Jul 2023 15:52:27 -0700 Subject: [PATCH] Update has_path_sum.py --- trees_and_graphs/has_path_sum.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/trees_and_graphs/has_path_sum.py b/trees_and_graphs/has_path_sum.py index 827f010..42454ee 100644 --- a/trees_and_graphs/has_path_sum.py +++ b/trees_and_graphs/has_path_sum.py @@ -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):