mrlonelyjtr's blog

写BUG的程序猿


  • Home

  • Categories

  • Archives

  • Tags

  • Search

[LeetCode] Problem 563 - Binary Tree Tilt

Posted on 2019-05-04 | In Algorithm , LeetCode
Given a binary tree, return the tilt of the whole tree. The tilt of a tree node is defined as the absolute difference between the sum of all left subt ...
Read more »

[LeetCode] Problem 654 - Maximum Binary Tree

Posted on 2019-05-03 | In Algorithm , LeetCode
Given an integer array with no duplicates. A maximum tree building on this array is defined as follow: The root is the maximum number in the array. T ...
Read more »

[LeetCode] Problem 310 - Minimum Height Trees

Posted on 2019-05-03 | In Algorithm , LeetCode
For an undirected graph with tree characteristics, we can choose any node as the root. The result graph is then a rooted tree. Among all possible root ...
Read more »

[LintCode] Problem 448 - Inorder Successor in BST

Posted on 2019-05-02 | In Algorithm , LintCode
Given a binary search tree and a node in it, find the in-order successor of that node in the BST. If the given node has no in-order successor in the t ...
Read more »

[LeetCode] Problem 938 - Range Sum of BST

Posted on 2019-05-01 | In Algorithm , LeetCode
Given the root node of a binary search tree, return the sum of values of all nodes with value between L and R (inclusive). The binary search tree is g ...
Read more »

[LeetCode] Problem 501 - Find Mode in Binary Search Tree

Posted on 2019-05-01 | In Algorithm , LeetCode
Given a binary search tree (BST) with duplicates, find all the mode(s) (the most frequently occurred element) in the given BST. Assume a BST is define ...
Read more »

[LeetCode] Problem 236 - Lowest Common Ancestor of a Binary Tree

Posted on 2019-05-01 | In Algorithm , LeetCode
Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. According to the definition of LCA on Wikipedia: “The lowes ...
Read more »

[LeetCode] Problem 235 - Lowest Common Ancestor of a Binary Search Tree

Posted on 2019-05-01 | In Algorithm , LeetCode
Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST. According to the definition of LCA on Wikipedia ...
Read more »

[LeetCode] Problem 297 - Serialize and Deserialize Binary Tree

Posted on 2019-05-01 | In Algorithm , LeetCode
Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or ...
Read more »

[LeetCode] Problem 449 - Serialize and Deserialize BST

Posted on 2019-04-29 | In Algorithm , LeetCode
Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or ...
Read more »
1…424344…78
mrlonelyjtr

mrlonelyjtr

间歇性踌躇满志,持续性混吃等死

780 posts
18 categories
18 tags
Github
© 2020 mrlonelyjtr
Powered by Hexo
Theme - NexT.Pisces