摘要:
When you start JVM you define how much RAM it can use use for processing. JVM divides this into certain memory locations for its processing purpose, t 阅读全文
摘要:
https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/description/Given an array where elements are sorted in ascending order, convert it to a height balanced BST.For this problem, ... 阅读全文
摘要:
https://leetcode.com/problems/validate-binary-search-tree/description/Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtree of a ... 阅读全文
摘要:
https://leetcode.com/problems/binary-tree-longest-consecutive-sequence/description/Given a binary tree, find the length of the longest consecutive sequence path.The path refers to any sequence of node... 阅读全文
摘要:
https://leetcode.com/problems/path-sum-ii/description/Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary tree and ... 阅读全文
摘要:
https://leetcode.com/problems/symmetric-tree/description/Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree [1,2,2,3,4,4,3] is ... 阅读全文