Algorithm
文章平均质量分 54
哈哈小火锅
这个作者很懒,什么都没留下…
展开
-
Dynamic Programming:最大子序和
算法刷题系列 AlgorithmDifficulty:easyNode Depths原创 2021-02-27 13:15:46 · 127 阅读 · 0 评论 -
Tree Algorithm:Branch Sum
算法刷题系列 AlgorithmDifficulty:easyBranch SumWrite a function that takes in a Binary Tree and returns a list of its branch sums ordered from leftmost branch sum to rightmost branch sum.A branch sum is the sum of all values in a Binary Tree branch. A Bina原创 2021-02-20 18:29:29 · 155 阅读 · 0 评论 -
Tree Algorithm: Find Closest Value In BST
算法刷题系列 AlgorithmDifficulty:easyFind Closest Value In BSTWrite a function that takes in a Binary Search Tree (BST) and a target integer value and returns the closest value to that target value contained in the BST.You can assume that there will only b原创 2021-02-07 11:19:43 · 192 阅读 · 0 评论 -
Array Algorithm: Validate Subsequence
算法刷题系列 AlgorithmDifficulty:easyValidate SubsequenceGiven two non-empty arrays of integers, write a function that determines whether the second array is a subsequence of the first one.A subsequence of an array is a set of numbers that aren’t necessari原创 2021-02-06 16:18:53 · 148 阅读 · 0 评论 -
Array Algorithm:Two Number Sum
算法刷题系列 AlgorithmDifficulty:easyTwo Number SumWrite a function that takes in a non-empty array of distinct integers and an integer representing a target sum. If any two numbers in the input array sum up to the target sum, the function should return the原创 2021-02-06 15:12:08 · 68 阅读 · 0 评论