
LeetCode
文章平均质量分 55
Sdtin
这个作者很懒,什么都没留下…
展开
-
630. Course Schedule III
题目:There are n different online courses numbered from 1 to n. Each course has some duration(course length) t and closed on dth day. A course should be taken continuously for t days and must原创 2017-07-09 21:43:59 · 374 阅读 · 0 评论 -
629. K Inverse Pairs Array
题目:Given two integers n and k, find how many different arrays consist of numbers from 1 to n such that there are exactly k inverse pairs.We define an inverse pair as following: For ith and原创 2017-07-09 21:13:12 · 356 阅读 · 0 评论 -
Edit Distance
题目:Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)You have the following 3 operations permitted on a word:a...原创 2018-04-05 14:39:00 · 249 阅读 · 0 评论 -
LargestNumber
题目:Given a list of non negative integers, arrange them such that they form the largest number.出处:https://leetcode.com/problems/largest-number/description/ 大神的解法: class Solution { pub...原创 2018-08-20 12:14:43 · 291 阅读 · 0 评论 -
Super Egg Drop
题目: 出处:参考的解法: class Solution { public int superEggDrop(int K, int N) { int[][] memo = new int[K + 1][N + 1]; return helper(K, N, memo); } private int helper(int K,...原创 2018-08-21 08:38:09 · 490 阅读 · 0 评论