Skip to content

Given a binary tree root, a node X in the tree is named good if in the path from root to X there are no nodes with a value greater than X. Return the number of good nodes in the binary tree.

Notifications You must be signed in to change notification settings

gabrieldep/Count-Good-Nodes-in-Binary-Tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

About

Given a binary tree root, a node X in the tree is named good if in the path from root to X there are no nodes with a value greater than X. Return the number of good nodes in the binary tree.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages