https://github.com/anr007/leetcode
https://github.com/anr007/leetcode
leetcode leetcode-java leetcode-solutions
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/anr007/leetcode
- Owner: anr007
- Created: 2018-07-10T12:15:41.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-03T13:35:20.000Z (over 7 years ago)
- Last Synced: 2025-03-06T03:36:02.082Z (about 1 year ago)
- Topics: leetcode, leetcode-java, leetcode-solutions
- Language: Java
- Size: 53.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LeetCode Solutions in Java
## Tree definitions:
**Height of node** – The height of a node is the number of edges on the longest downward path between that node and a leaf.
- The height of the **root** is 1.
**Depth** –The depth of a node is the number of edges from the node to the tree's root node.
- The depth of the **root** is 0.
**Level** – The level of a node is defined by 1 + the number of connections between the node and the root.
- Simply, level is **depth plus 1**.
**Height of tree** –The height of a tree is the number of edges on the longest downward path between the root and a leaf.