TreeNode
-
[ Tree ] 98. Validate Binary Search Tree리트코드(Leetcode) 2023. 6. 26. 12:34
1. 문제 https://leetcode.com/problems/validate-binary-search-tree/ Validate Binary Search Tree - LeetCode Can you solve this real interview question? Validate Binary Search Tree - Given the root of a binary tree, determine if it is a valid binary search tree (BST). A valid BST is defined as follows: * The left subtree of a node contains only nodes with keys le leetcode.com Given the root of a bina..
-
[ Tree ] 104. Maximum Depth of Binary Tree (JAVA)리트코드(Leetcode) 2023. 6. 26. 11:24
104번 문제 https://leetcode.com/problems/maximum-depth-of-binary-tree/ Maximum Depth of Binary Tree - LeetCode Can you solve this real interview question? Maximum Depth of Binary Tree - Given the root of a binary tree, return its maximum depth. A binary tree's maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf leetcode.com 1. 문제 Given the root o..