mrlonelyjtr's blog

写BUG的程序猿


  • Home

  • Categories

  • Archives

  • Tags

  • Search

[LeetCode] Problem 450 - Delete Node in a BST

Posted on 2019-04-29 | In Algorithm , LeetCode
Given a root node reference of a BST and a key, delete the node with the given key in the BST. Return the root node reference (possibly updated) of th ...
Read more »

[LeetCode] Problem 530 - Minimum Absolute Difference in BST

Posted on 2019-04-29 | In Algorithm , LeetCode
Given a binary search tree with non-negative values, find the minimum absolute difference between values of any two nodes. ExampleInput: 123451 \ 3 / ...
Read more »

[LeetCode] Problem 783 - Minimum Distance Between BST Nodes

Posted on 2019-04-29 | In Algorithm , LeetCode
Given a Binary Search Tree (BST) with the root node root, return the minimum difference between the values of any two different nodes in the tree. Exa ...
Read more »

[LeetCode] Problem 173 - Binary Search Tree Iterator

Posted on 2019-04-29 | In Algorithm , LeetCode
Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST. Calling next() will return the n ...
Read more »

[LeetCode] Problem 230 - Kth Smallest Element in a BST

Posted on 2019-04-28 | In Algorithm , LeetCode
Given a binary search tree, write a function kthSmallest to find the kth smallest element in it. NoteYou may assume k is always valid, 1 ≤ k ≤ BST’s t ...
Read more »

[LintCode] Problem 863 - Binary Tree Path Sum IV

Posted on 2019-04-28 | In Algorithm , LintCode
If the depth of a tree is smaller than 5, this tree can be represented by a list of three-digits integers. For each integer in this list: The hundred ...
Read more »

[LeetCode] Problem 80 - Remove Duplicates from Sorted Array II

Posted on 2019-04-27 | In Algorithm , LeetCode
Given a sorted array nums, remove the duplicates in-place such that duplicates appeared at most twice and return the new length. Do not allocate extra ...
Read more »

[LeetCode] Problem 889 - Construct Binary Tree from Preorder and Postorder Traversal

Posted on 2019-04-26 | In Algorithm , LeetCode
Return any binary tree that matches the given preorder and postorder traversals. Values in the traversals pre and post are distinct positive integers. ...
Read more »

[LeetCode] Problem 106 - Construct Binary Tree from Inorder and Postorder Traversal

Posted on 2019-04-26 | In Algorithm , LeetCode
Given inorder and postorder traversal of a tree, construct the binary tree. NoteYou may assume that duplicates do not exist in the tree. For example, ...
Read more »

[LeetCode] Problem 105 - Construct Binary Tree from Preorder and Inorder Traversal

Posted on 2019-04-26 | In Algorithm , LeetCode
Given preorder and inorder traversal of a tree, construct the binary tree. NoteYou may assume that duplicates do not exist in the tree. For example, g ...
Read more »
1…434445…78
mrlonelyjtr

mrlonelyjtr

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

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