Uses of Class
com_github_leetcode.TreeNode
-
-
Uses of TreeNode in com_github_leetcode
Fields in com_github_leetcode declared as TreeNode Modifier and Type Field Description TreeNodeTreeNode. leftTreeNodeTreeNode. rightMethods in com_github_leetcode that return TreeNode Modifier and Type Method Description static TreeNodeTreeNode. create(List<Integer> treeValues)Constructors in com_github_leetcode with parameters of type TreeNode Constructor Description TreeNode(int val, TreeNode left, TreeNode right) -
Uses of TreeNode in g0001_0100.s0094_binary_tree_inorder_traversal
Methods in g0001_0100.s0094_binary_tree_inorder_traversal with parameters of type TreeNode Modifier and Type Method Description List<Integer>Solution. inorderTraversal(TreeNode root)voidSolution. inorderTraversal(TreeNode root, List<Integer> answer) -
Uses of TreeNode in g0001_0100.s0095_unique_binary_search_trees_ii
Methods in g0001_0100.s0095_unique_binary_search_trees_ii that return types with arguments of type TreeNode Modifier and Type Method Description List<TreeNode>Solution. generateTrees(int n) -
Uses of TreeNode in g0001_0100.s0098_validate_binary_search_tree
Methods in g0001_0100.s0098_validate_binary_search_tree with parameters of type TreeNode Modifier and Type Method Description booleanSolution. isValidBST(TreeNode root) -
Uses of TreeNode in g0001_0100.s0099_recover_binary_search_tree
Methods in g0001_0100.s0099_recover_binary_search_tree with parameters of type TreeNode Modifier and Type Method Description voidSolution. recoverTree(TreeNode root) -
Uses of TreeNode in g0001_0100.s0100_same_tree
Methods in g0001_0100.s0100_same_tree with parameters of type TreeNode Modifier and Type Method Description booleanSolution. isSameTree(TreeNode p, TreeNode q) -
Uses of TreeNode in g0101_0200.s0101_symmetric_tree
Methods in g0101_0200.s0101_symmetric_tree with parameters of type TreeNode Modifier and Type Method Description booleanSolution. isSymmetric(TreeNode root) -
Uses of TreeNode in g0101_0200.s0102_binary_tree_level_order_traversal
Methods in g0101_0200.s0102_binary_tree_level_order_traversal with parameters of type TreeNode Modifier and Type Method Description List<List<Integer>>Solution. levelOrder(TreeNode root) -
Uses of TreeNode in g0101_0200.s0103_binary_tree_zigzag_level_order_traversal
Methods in g0101_0200.s0103_binary_tree_zigzag_level_order_traversal with parameters of type TreeNode Modifier and Type Method Description List<List<Integer>>Solution. zigzagLevelOrder(TreeNode root) -
Uses of TreeNode in g0101_0200.s0104_maximum_depth_of_binary_tree
Methods in g0101_0200.s0104_maximum_depth_of_binary_tree with parameters of type TreeNode Modifier and Type Method Description intSolution. maxDepth(TreeNode root) -
Uses of TreeNode in g0101_0200.s0105_construct_binary_tree_from_preorder_and_inorder_traversal
Methods in g0101_0200.s0105_construct_binary_tree_from_preorder_and_inorder_traversal that return TreeNode Modifier and Type Method Description TreeNodeSolution. buildTree(int[] preorder, int[] inorder) -
Uses of TreeNode in g0101_0200.s0106_construct_binary_tree_from_inorder_and_postorder_traversal
Methods in g0101_0200.s0106_construct_binary_tree_from_inorder_and_postorder_traversal that return TreeNode Modifier and Type Method Description TreeNodeSolution. buildTree(int[] inorder, int[] postorder) -
Uses of TreeNode in g0101_0200.s0107_binary_tree_level_order_traversal_ii
Methods in g0101_0200.s0107_binary_tree_level_order_traversal_ii with parameters of type TreeNode Modifier and Type Method Description voidSolution. getOrder(TreeNode root, int level)List<List<Integer>>Solution. levelOrderBottom(TreeNode root) -
Uses of TreeNode in g0101_0200.s0108_convert_sorted_array_to_binary_search_tree
Methods in g0101_0200.s0108_convert_sorted_array_to_binary_search_tree that return TreeNode Modifier and Type Method Description TreeNodeSolution. sortedArrayToBST(int[] num) -
Uses of TreeNode in g0101_0200.s0109_convert_sorted_list_to_binary_search_tree
Methods in g0101_0200.s0109_convert_sorted_list_to_binary_search_tree that return TreeNode Modifier and Type Method Description TreeNodeSolution. sortedListToBST(ListNode head) -
Uses of TreeNode in g0101_0200.s0110_balanced_binary_tree
Methods in g0101_0200.s0110_balanced_binary_tree with parameters of type TreeNode Modifier and Type Method Description booleanSolution. isBalanced(TreeNode root) -
Uses of TreeNode in g0101_0200.s0111_minimum_depth_of_binary_tree
Methods in g0101_0200.s0111_minimum_depth_of_binary_tree with parameters of type TreeNode Modifier and Type Method Description intSolution. minDepth(TreeNode root) -
Uses of TreeNode in g0101_0200.s0112_path_sum
Methods in g0101_0200.s0112_path_sum with parameters of type TreeNode Modifier and Type Method Description booleanSolution. hasPathSum(TreeNode root, int sum) -
Uses of TreeNode in g0101_0200.s0113_path_sum_ii
Methods in g0101_0200.s0113_path_sum_ii with parameters of type TreeNode Modifier and Type Method Description List<List<Integer>>Solution. pathSum(TreeNode root, int targetSum) -
Uses of TreeNode in g0101_0200.s0114_flatten_binary_tree_to_linked_list
Methods in g0101_0200.s0114_flatten_binary_tree_to_linked_list with parameters of type TreeNode Modifier and Type Method Description voidSolution. flatten(TreeNode root) -
Uses of TreeNode in g0101_0200.s0124_binary_tree_maximum_path_sum
Methods in g0101_0200.s0124_binary_tree_maximum_path_sum with parameters of type TreeNode Modifier and Type Method Description intSolution. maxPathSum(TreeNode root) -
Uses of TreeNode in g0101_0200.s0129_sum_root_to_leaf_numbers
Methods in g0101_0200.s0129_sum_root_to_leaf_numbers with parameters of type TreeNode Modifier and Type Method Description intSolution. sumNumbers(TreeNode root) -
Uses of TreeNode in g0101_0200.s0144_binary_tree_preorder_traversal
Methods in g0101_0200.s0144_binary_tree_preorder_traversal with parameters of type TreeNode Modifier and Type Method Description List<Integer>Solution. preorderTraversal(TreeNode root) -
Uses of TreeNode in g0101_0200.s0145_binary_tree_postorder_traversal
Methods in g0101_0200.s0145_binary_tree_postorder_traversal with parameters of type TreeNode Modifier and Type Method Description List<Integer>Solution. postorderTraversal(TreeNode root) -
Uses of TreeNode in g0101_0200.s0173_binary_search_tree_iterator
Constructors in g0101_0200.s0173_binary_search_tree_iterator with parameters of type TreeNode Constructor Description BSTIterator(TreeNode root) -
Uses of TreeNode in g0101_0200.s0199_binary_tree_right_side_view
Methods in g0101_0200.s0199_binary_tree_right_side_view with parameters of type TreeNode Modifier and Type Method Description List<Integer>Solution. rightSideView(TreeNode root) -
Uses of TreeNode in g0201_0300.s0222_count_complete_tree_nodes
Methods in g0201_0300.s0222_count_complete_tree_nodes with parameters of type TreeNode Modifier and Type Method Description intSolution. countNodes(TreeNode root) -
Uses of TreeNode in g0201_0300.s0226_invert_binary_tree
Methods in g0201_0300.s0226_invert_binary_tree that return TreeNode Modifier and Type Method Description TreeNodeSolution. invertTree(TreeNode root)Methods in g0201_0300.s0226_invert_binary_tree with parameters of type TreeNode Modifier and Type Method Description TreeNodeSolution. invertTree(TreeNode root) -
Uses of TreeNode in g0201_0300.s0230_kth_smallest_element_in_a_bst
Methods in g0201_0300.s0230_kth_smallest_element_in_a_bst with parameters of type TreeNode Modifier and Type Method Description intSolution. kthSmallest(TreeNode root, int k) -
Uses of TreeNode in g0201_0300.s0235_lowest_common_ancestor_of_a_binary_search_tree
Methods in g0201_0300.s0235_lowest_common_ancestor_of_a_binary_search_tree that return TreeNode Modifier and Type Method Description TreeNodeSolution. lowestCommonAncestor(TreeNode root, TreeNode p, TreeNode q)Methods in g0201_0300.s0235_lowest_common_ancestor_of_a_binary_search_tree with parameters of type TreeNode Modifier and Type Method Description TreeNodeSolution. lowestCommonAncestor(TreeNode root, TreeNode p, TreeNode q) -
Uses of TreeNode in g0201_0300.s0236_lowest_common_ancestor_of_a_binary_tree
Methods in g0201_0300.s0236_lowest_common_ancestor_of_a_binary_tree that return TreeNode Modifier and Type Method Description TreeNodeSolution. lowestCommonAncestor(TreeNode root, TreeNode p, TreeNode q)Methods in g0201_0300.s0236_lowest_common_ancestor_of_a_binary_tree with parameters of type TreeNode Modifier and Type Method Description TreeNodeSolution. lowestCommonAncestor(TreeNode root, TreeNode p, TreeNode q) -
Uses of TreeNode in g0201_0300.s0257_binary_tree_paths
Methods in g0201_0300.s0257_binary_tree_paths with parameters of type TreeNode Modifier and Type Method Description List<String>Solution. binaryTreePaths(TreeNode root) -
Uses of TreeNode in g0201_0300.s0297_serialize_and_deserialize_binary_tree
Methods in g0201_0300.s0297_serialize_and_deserialize_binary_tree that return TreeNode Modifier and Type Method Description TreeNodeCodec. deserialize(String data)Methods in g0201_0300.s0297_serialize_and_deserialize_binary_tree with parameters of type TreeNode Modifier and Type Method Description StringCodec. serialize(TreeNode root)voidCodec. serialize(TreeNode root, StringBuilder sb) -
Uses of TreeNode in g0301_0400.s0337_house_robber_iii
Methods in g0301_0400.s0337_house_robber_iii with parameters of type TreeNode Modifier and Type Method Description intSolution. rob(TreeNode root) -
Uses of TreeNode in g0401_0500.s0404_sum_of_left_leaves
Methods in g0401_0500.s0404_sum_of_left_leaves with parameters of type TreeNode Modifier and Type Method Description intSolution. sumOfLeftLeaves(TreeNode root) -
Uses of TreeNode in g0401_0500.s0437_path_sum_iii
Methods in g0401_0500.s0437_path_sum_iii with parameters of type TreeNode Modifier and Type Method Description intSolution. pathSum(TreeNode root, int targetSum) -
Uses of TreeNode in g0401_0500.s0450_delete_node_in_a_bst
Methods in g0401_0500.s0450_delete_node_in_a_bst that return TreeNode Modifier and Type Method Description TreeNodeSolution. deleteNode(TreeNode root, int key)Methods in g0401_0500.s0450_delete_node_in_a_bst with parameters of type TreeNode Modifier and Type Method Description TreeNodeSolution. deleteNode(TreeNode root, int key) -
Uses of TreeNode in g0501_0600.s0501_find_mode_in_binary_search_tree
Methods in g0501_0600.s0501_find_mode_in_binary_search_tree with parameters of type TreeNode Modifier and Type Method Description int[]Solution. findMode(TreeNode root) -
Uses of TreeNode in g0501_0600.s0508_most_frequent_subtree_sum
Methods in g0501_0600.s0508_most_frequent_subtree_sum with parameters of type TreeNode Modifier and Type Method Description int[]Solution. findFrequentTreeSum(TreeNode root) -
Uses of TreeNode in g0501_0600.s0513_find_bottom_left_tree_value
Methods in g0501_0600.s0513_find_bottom_left_tree_value with parameters of type TreeNode Modifier and Type Method Description intSolution. findBottomLeftValue(TreeNode root) -
Uses of TreeNode in g0501_0600.s0515_find_largest_value_in_each_tree_row
Methods in g0501_0600.s0515_find_largest_value_in_each_tree_row with parameters of type TreeNode Modifier and Type Method Description List<Integer>Solution. largestValues(TreeNode root) -
Uses of TreeNode in g0501_0600.s0530_minimum_absolute_difference_in_bst
Methods in g0501_0600.s0530_minimum_absolute_difference_in_bst with parameters of type TreeNode Modifier and Type Method Description intSolution. getMinimumDifference(TreeNode root) -
Uses of TreeNode in g0501_0600.s0538_convert_bst_to_greater_tree
Methods in g0501_0600.s0538_convert_bst_to_greater_tree that return TreeNode Modifier and Type Method Description TreeNodeSolution. convertBST(TreeNode root)Methods in g0501_0600.s0538_convert_bst_to_greater_tree with parameters of type TreeNode Modifier and Type Method Description TreeNodeSolution. convertBST(TreeNode root) -
Uses of TreeNode in g0501_0600.s0543_diameter_of_binary_tree
Methods in g0501_0600.s0543_diameter_of_binary_tree with parameters of type TreeNode Modifier and Type Method Description intSolution. diameterOfBinaryTree(TreeNode root) -
Uses of TreeNode in g0501_0600.s0563_binary_tree_tilt
Methods in g0501_0600.s0563_binary_tree_tilt with parameters of type TreeNode Modifier and Type Method Description intSolution. findTilt(TreeNode root) -
Uses of TreeNode in g0501_0600.s0572_subtree_of_another_tree
Methods in g0501_0600.s0572_subtree_of_another_tree with parameters of type TreeNode Modifier and Type Method Description booleanSolution. isSubtree(TreeNode root, TreeNode subRoot) -
Uses of TreeNode in g0601_0700.s0606_construct_string_from_binary_tree
Methods in g0601_0700.s0606_construct_string_from_binary_tree with parameters of type TreeNode Modifier and Type Method Description StringSolution. tree2str(TreeNode t) -
Uses of TreeNode in g0601_0700.s0617_merge_two_binary_trees
Methods in g0601_0700.s0617_merge_two_binary_trees that return TreeNode Modifier and Type Method Description TreeNodeSolution. mergeTrees(TreeNode root1, TreeNode root2)Methods in g0601_0700.s0617_merge_two_binary_trees with parameters of type TreeNode Modifier and Type Method Description TreeNodeSolution. mergeTrees(TreeNode root1, TreeNode root2) -
Uses of TreeNode in g0601_0700.s0623_add_one_row_to_tree
Methods in g0601_0700.s0623_add_one_row_to_tree that return TreeNode Modifier and Type Method Description TreeNodeSolution. addOneRow(TreeNode root, int val, int depth)Methods in g0601_0700.s0623_add_one_row_to_tree with parameters of type TreeNode Modifier and Type Method Description TreeNodeSolution. addOneRow(TreeNode root, int val, int depth) -
Uses of TreeNode in g0601_0700.s0637_average_of_levels_in_binary_tree
Methods in g0601_0700.s0637_average_of_levels_in_binary_tree with parameters of type TreeNode Modifier and Type Method Description List<Double>Solution. averageOfLevels(TreeNode root) -
Uses of TreeNode in g0601_0700.s0652_find_duplicate_subtrees
Methods in g0601_0700.s0652_find_duplicate_subtrees that return types with arguments of type TreeNode Modifier and Type Method Description List<TreeNode>Solution. findDuplicateSubtrees(TreeNode root)Methods in g0601_0700.s0652_find_duplicate_subtrees with parameters of type TreeNode Modifier and Type Method Description List<TreeNode>Solution. findDuplicateSubtrees(TreeNode root) -
Uses of TreeNode in g0601_0700.s0653_two_sum_iv_input_is_a_bst
Methods in g0601_0700.s0653_two_sum_iv_input_is_a_bst with parameters of type TreeNode Modifier and Type Method Description booleanSolution. findTarget(TreeNode root, int k) -
Uses of TreeNode in g0601_0700.s0654_maximum_binary_tree
Methods in g0601_0700.s0654_maximum_binary_tree that return TreeNode Modifier and Type Method Description TreeNodeSolution. constructMaximumBinaryTree(int[] nums) -
Uses of TreeNode in g0601_0700.s0655_print_binary_tree
Methods in g0601_0700.s0655_print_binary_tree with parameters of type TreeNode Modifier and Type Method Description List<List<String>>Solution. printTree(TreeNode root) -
Uses of TreeNode in g0601_0700.s0662_maximum_width_of_binary_tree
Methods in g0601_0700.s0662_maximum_width_of_binary_tree with parameters of type TreeNode Modifier and Type Method Description intSolution. widthOfBinaryTree(TreeNode root) -
Uses of TreeNode in g0601_0700.s0669_trim_a_binary_search_tree
Methods in g0601_0700.s0669_trim_a_binary_search_tree that return TreeNode Modifier and Type Method Description TreeNodeSolution. trimBST(TreeNode root, int l, int r)Methods in g0601_0700.s0669_trim_a_binary_search_tree with parameters of type TreeNode Modifier and Type Method Description TreeNodeSolution. trimBST(TreeNode root, int l, int r) -
Uses of TreeNode in g0601_0700.s0671_second_minimum_node_in_a_binary_tree
Methods in g0601_0700.s0671_second_minimum_node_in_a_binary_tree with parameters of type TreeNode Modifier and Type Method Description intSolution. findSecondMinimumValue(TreeNode root) -
Uses of TreeNode in g0601_0700.s0687_longest_univalue_path
Methods in g0601_0700.s0687_longest_univalue_path with parameters of type TreeNode Modifier and Type Method Description intSolution. longestUnivaluePath(TreeNode root) -
Uses of TreeNode in g0601_0700.s0700_search_in_a_binary_search_tree
Methods in g0601_0700.s0700_search_in_a_binary_search_tree that return TreeNode Modifier and Type Method Description TreeNodeSolution. searchBST(TreeNode root, int val)Methods in g0601_0700.s0700_search_in_a_binary_search_tree with parameters of type TreeNode Modifier and Type Method Description TreeNodeSolution. searchBST(TreeNode root, int val) -
Uses of TreeNode in g0701_0800.s0701_insert_into_a_binary_search_tree
Methods in g0701_0800.s0701_insert_into_a_binary_search_tree that return TreeNode Modifier and Type Method Description TreeNodeSolution. insertIntoBST(TreeNode root, int val)Methods in g0701_0800.s0701_insert_into_a_binary_search_tree with parameters of type TreeNode Modifier and Type Method Description TreeNodeSolution. insertIntoBST(TreeNode root, int val) -
Uses of TreeNode in g0701_0800.s0783_minimum_distance_between_bst_nodes
Methods in g0701_0800.s0783_minimum_distance_between_bst_nodes with parameters of type TreeNode Modifier and Type Method Description intSolution. minDiffInBST(TreeNode root)
-