Edit Distance 题目 给定两个字符串word1, word2。求出从word1到word2步骤最少的修改方式,修改方式包括替换(re...
Longest Valid Parentheses 题目 给定一个字符串s,由 '(' 和 ')' 组成,求最长合法括号(valid paren...
Game of Life live: 0 0 0 0 0 0 0 1die: 0 0 0 0 0 0 0 0 既然如此,我们可以用这个int的...
Coin Change给定一组硬币和一个目标金额,返回最少用几个硬币能凑出目标金额,如果不能返回-1。 数组dp用来记录能凑出从 1 到 amo...
Combination Sum IV早上起来看到朋友微信说出新题了,于是打开leetcode 看了一下,原来又是Combination Sum。...
Different Ways to Add ParenthesesGiven a string of numbers and operators...
Cocoapods Install Cocoapods Run in terminal: After installation, there w...
Word Ladder - LeetCode给定一个两个词 beginWord, endWord 与一个unordered_set wordLi...
Range Sum Query 2D - Immutable给定一个二维数组,求一个方块内所有元素之和((row1, col1) 与 (row2...