算法
shan0288
这个作者很懒,什么都没留下…
展开
-
【LeeCode】 Paint House I and II
Paint House I There are a row of n houses, each house can be painted with one of the three colors:red, blue or green. The cost of painting each house with a certain color is different. You have to pa...原创 2019-05-22 16:34:12 · 124 阅读 · 0 评论 -
【LeeCode】 Min Cost Climbing Stairs
Min Cost Climbing Stairs On a staircase, the ith step has some non-negative cost cost[i] assigned. Once you pay cost, you can either climb one or two steps. You need to find minimum cost to reach th...原创 2019-05-27 09:11:37 · 84 阅读 · 0 评论 -
【LeeCode】 Video Stitching
1024. Video Stitching You are given a series of video clips from a sporting event that lasted T seconds. These video clips can be overlapping with each other and have varied lengths. Each video cli...原创 2019-05-30 08:50:07 · 202 阅读 · 0 评论 -
【LeeCode】 Best Time to Buy and Sell Stock
Best Time to Buy and Sell Stock Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transaction (i.e., buy one ...原创 2019-05-24 08:31:56 · 70 阅读 · 0 评论 -
【LeeCode】 Word Break
【LeeCode】 Word Break Given a non-empty string s and a dictionary wordDict consraining list of non-empty words, determine if s can be segmented into a space-separated sequence of one or more diction...原创 2019-05-29 09:18:03 · 110 阅读 · 0 评论 -
【LeeCode】 Letter Tile Possibilities
5087. Letter Tile Possibilities You have a set of tiles, where each tile has one letter tiles[i[] printed on it. Return the number of possibile non-empty sequences of letters you can make. Method 1:...原创 2019-06-11 08:40:38 · 213 阅读 · 0 评论