From cd4d8dea442497a029cea9050fbfacd2580915f5 Mon Sep 17 00:00:00 2001 From: bt3gl <138340846+bt3gl-google@users.noreply.github.com> Date: Sun, 30 Jul 2023 15:52:05 -0700 Subject: [PATCH] Update count_unival.py --- trees_and_graphs/count_unival.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/trees_and_graphs/count_unival.py b/trees_and_graphs/count_unival.py index 5b2db1f..617f13c 100644 --- a/trees_and_graphs/count_unival.py +++ b/trees_and_graphs/count_unival.py @@ -1,3 +1,7 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# author: bt3gl + ''' Given the root of a binary tree, return the number of uni-value subtrees. A uni-value subtree means all nodes of the subtree have the same value.