Update count_unival.py

This commit is contained in:
bt3gl 2023-07-30 15:52:05 -07:00 committed by GitHub
parent e7d855b99e
commit cd4d8dea44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.