2022年1月9日

摘要: Given the root of a binary tree and an integer targetSum, return all root-to-leaf paths where the sum of the node values in the path equals targetSum. 阅读全文
posted @ 2022-01-09 02:04 codingEskimo 阅读(22) 评论(0) 推荐(0) 编辑
摘要: Given the root of a binary tree and an integer targetSum, return true if the tree has a root-to-leaf path such that adding up all the values along the 阅读全文
posted @ 2022-01-09 01:49 codingEskimo 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 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 co 阅读全文
posted @ 2022-01-09 01:38 codingEskimo 阅读(20) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as: a binary tree in which the lef 阅读全文
posted @ 2022-01-09 01:13 codingEskimo 阅读(19) 评论(0) 推荐(0) 编辑

导航