
leetcode
文章平均质量分 75
mofei12138
这个作者很懒,什么都没留下…
展开
-
leetcode 330 Patching Array
原题链接:Patching Array - LeetCode 题目 Given a sorted integer array nums and an integer n, add/patch elements to the array such that any number in the range [1, n] inclusive can be formed by the sum of some elements in the array. Return the minimum number of pa原创 2022-03-17 22:26:19 · 336 阅读 · 0 评论 -
leetcode 96 Unique Binary Search Trees
原题链接:Unique Binary Search Trees - LeetCode 题目 Given an integer n, return *the number of structurally unique **BST’*s (binary search trees) which has exactly n nodes of unique values from 1 to n. Example 1: Input: n = 3 Output: 5 Example 2: Input: n = 1 Ou原创 2021-12-11 18:42:16 · 232 阅读 · 0 评论 -
leetcode 11 Container With Most Water
原题链接:Container With Most Water - LeetCode 题目 Given n non-negative integers a1, a2, ..., an , where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of the line i is at (i, ai) and (i, 0). Find two lines,原创 2021-09-04 23:13:53 · 109 阅读 · 0 评论