• Home

  • Tags

  • Categories

  • Archives

115. Distinct Subsequences

Posted on 2018-11-24 | In 算法 | leetcode
Words count in article: 643 | Reading time ≈ 3
题目Given a string S and a string T, count the number of distinct subsequences of Swhich equals T. A subsequence of a string is a new string which is fo ...
Read more »

120. Triangle

Posted on 2018-11-24 | In 算法 | leetcode
Words count in article: 655 | Reading time ≈ 3
题目Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, given the ...
Read more »

97. Interleaving String

Posted on 2018-11-23 | In 算法 | leetcode
Words count in article: 703 | Reading time ≈ 3
题目Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. Example 1: Input: s1 = "aabcc", s2 = "dbbca", s3 = "aadbbcbcac" Outp ...
Read more »

95. Unique Binary Search Trees II

Posted on 2018-11-23 | In 算法 | leetcode
Words count in article: 530 | Reading time ≈ 2
题目Given an integer n, generate all structurally unique BST's (binary search trees) that store values 1 ... n. Example: Input: 3 Output: ...
Read more »

87. Scramble String

Posted on 2018-11-21 | In 算法 | leetcode
Words count in article: 1k | Reading time ≈ 5
题目Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively. Below is one possible represent ...
Read more »

63. Unique Paths II

Posted on 2018-11-21 | In 算法 | leetcode
Words count in article: 500 | Reading time ≈ 2
题目A robot is located at the top-left corner of a m x n grid (marked ‘Start’ in the diagram below).The robot can only move either down or right at any ...
Read more »

32. Longest Valid Parentheses

Posted on 2018-11-18 | In 算法 | leetcode
Words count in article: 884 | Reading time ≈ 3
题目Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. ...
Read more »

72. Edit Distance

Posted on 2018-11-18 | In 算法 | leetcode
Words count in article: 636 | Reading time ≈ 3
题目Given two words word1 and word2, find the minimum number of operations required to convert word1 to word2. You have the following 3 operations permi ...
Read more »

55. Jump Game

Posted on 2018-11-17 | In 算法 | leetcode
Words count in article: 315 | Reading time ≈ 1
题目Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your max ...
Read more »

330. Patching Array

Posted on 2018-11-17 | In 算法 | leetcode
Words count in article: 825 | Reading time ≈ 3
题目Given a sorted positive integer array nums and an integer n, add/patch elements to the array such that any number in range [1, n] inclusive can be f ...
Read more »
<i class="fa fa-angle-left"></i>1…345…7<i class="fa fa-angle-right"></i>

65 posts
14 categories
19 tags
RSS
GitHub
© 2023 liuyt49
Powered by Hexo
|
Theme — NexT.Mist v5.1.4
访问人数 访问总量 次