- 博客(6)
- 收藏
- 关注
原创 【leetcode每日刷题】【hard】76. Minimum Window Substring
Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).Example:Input: S = "ADOBECODEBANC", T = "ABC"Output: "BANC"Note:I...
2019-05-26 19:29:53 165
原创 【leetcode每日刷题】147. Insertion Sort List
Sort a linked list using insertion sort.A graphical example of insertion sort. The partial sorted list (black) initially contains only the first element in the list.With each iteration one element...
2019-05-16 17:02:32 175
原创 【leetcode每日刷题】【DP】322. Coin Change
You are given coins of different denominations and a total amount of moneyamount. Write a function to compute the fewest number of coins that you need to make up that amount. If that amount of money ...
2019-05-12 20:22:01 187
原创 【leetcode每日刷题】43. Multiply Strings
Given two non-negative integersnum1andnum2represented as strings, return the product ofnum1andnum2, also represented as a string.Example 1:Input: num1 = "2", num2 = "3"Output: "6"Exampl...
2019-05-12 19:32:15 138
原创 【leetcode每日刷题】【并查集】547. Friend Circles
There areNstudents in a class. Some of them are friends, while some are not. Their friendship is transitive in nature. For example, if A is adirectfriend of B, and B is adirectfriend of C, then ...
2019-05-03 12:18:34 174
原创 【leetcode每日刷题】【尺取法】713. Subarray Product Less Than K
Your are given an array of positive integersnums.Count and print the number of (contiguous) subarrays where the product of all the elements in the subarray is less thank.Example 1:Input: nums...
2019-05-03 09:58:52 154
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人