mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-04-30 12:46:11 -04:00
Update count_unival.py
This commit is contained in:
parent
e7d855b99e
commit
cd4d8dea44
@ -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.
|
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.
|
A uni-value subtree means all nodes of the subtree have the same value.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user