- 博客(7)
- 资源 (1)
- 收藏
- 关注
原创 [LeetCode]Maximum Subarray Sum with One Deletion@Golang
Maximum Subarray Sum with One DeletionGiven an array of integers, return the maximum sum for a non-empty subarray (contiguous elements) with at most one element deletion. In other words, you want to ...
2019-11-12 22:48:28 419
原创 [LeetCode]Number of Dice Rolls With Target Sum@Golang
Number of Dice Rolls With Target SumYou have d dice, and each die has f faces numbered 1, 2, …, f.Return the number of possible ways (out of fd total ways) modulo 10^9 + 7 to roll the dice so the su...
2019-11-12 22:12:21 303
原创 [LeetCode]Longest Common Subsequence@Golang
Longest Common SubsequenceGiven two strings text1 and text2, return the length of their longest common subsequence.A subsequence of a string is a new string generated from the original string with s...
2019-11-08 09:06:36 288
原创 [LeetCode]Stone Game II@Golang
Stone Game IIAlex and Lee continue their games with piles of stones. There are a number of piles arranged in a row, and each pile has a positive integer number of stones piles[i]. The objective of ...
2019-11-06 22:24:05 214
原创 [LeetCode]Largest 1-Bordered Square@Golang
Largest 1-Bordered SquareGiven a 2D grid of 0s and 1s, return the number of elements in the largest square subgrid that has all 1s on its border, or 0 if such a subgrid doesn’t exist in the grid.Exa...
2019-11-06 16:14:20 139
原创 [LeetCode]Minimum Cost Tree From Leaf Values@Golang
Minimum Cost Tree From Leaf ValuesGiven an array arr of positive integers, consider all binary trees such that:Each node has either 0 or 2 children;The values of arr correspond to the values of eac...
2019-11-05 16:35:58 174
原创 [LeetCode]Filling Bookcase Shelves@Golang
Filling Bookcase ShelvesWe have a sequence of books: the i-th book has thickness books[i][0] and height books[i][1].We want to place these books in order onto bookcase shelves that have total width ...
2019-11-02 00:06:40 170
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人