LeetCode
文章平均质量分 82
sunday0904
这个作者很懒,什么都没留下…
展开
-
LeetCode[518]Coin Change 2(Java)
You are given coins of different denominations and a total amount of money. Write a function to compute the number of combinations that make up that amount. You may assume that you have infinite numbe原创 2017-10-08 20:05:39 · 954 阅读 · 0 评论 -
LeetCode[659]Split Array into Consecutive Subsequences(Java)
Description: You are given an integer array sorted in ascending order (may contain duplicates), you need to split them into several subsequences, where each subsequences consist of at least 3 con原创 2017-10-08 12:07:42 · 979 阅读 · 0 评论 -
LeetCode[450]Delete Node in a BST(Java)
Description: 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 the BST. Basically, the delet原创 2017-10-09 16:20:05 · 884 阅读 · 0 评论 -
LeetCode[567]Permutation in String(Java)
Description: Given two strings s1 and s2, write a function to return true if s2 contains the permutation of s1. In other words, one of the first string's permutations is the substring of the seco原创 2017-10-11 09:15:32 · 789 阅读 · 0 评论 -
LeetCode[307]Range Sum Query - Mutable(Java)
Description: Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. The update(i, val) function modifies nums by updating the element at index i原创 2017-10-04 15:27:35 · 468 阅读 · 0 评论 -
LeetCode[526]Beautiful Arrangement(Java)
Description: Suppose you have N integers from 1 to N. We define a beautiful arrangement as an array that is constructed by these N numbers successfully if one of the following is true for the ith p原创 2017-10-05 10:49:07 · 429 阅读 · 0 评论