上一页 1 2 3 4 5 6 7 8 ··· 14 下一页
摘要: Given a string of numbers and operators, return all possible results from computing all the different possible ways to group numbers and operators. Th 阅读全文
posted @ 2019-01-16 18:00 yuxihong 阅读(127) 评论(0) 推荐(0) 编辑
摘要: Solve a given equation and return the value of x in the form of string "x=#value". The equation contains only '+', '-' operation, the variable x and i 阅读全文
posted @ 2019-01-16 17:39 yuxihong 阅读(188) 评论(0) 推荐(0) 编辑
摘要: Given the coordinates of four points in 2D space, return whether the four points could construct a square. The coordinate (x,y) of a point is represen 阅读全文
posted @ 2019-01-16 17:00 yuxihong 阅读(144) 评论(0) 推荐(0) 编辑
摘要: Given a non-negative integer N, find the largest number that is less than or equal to N with monotone increasing digits. (Recall that an integer has m 阅读全文
posted @ 2019-01-16 14:16 yuxihong 阅读(207) 评论(0) 推荐(0) 编辑
摘要: A string of '0's and '1's is monotone increasing if it consists of some number of '0's (possibly 0), followed by some number of '1's (also possibly 0. 阅读全文
posted @ 2019-01-16 13:48 yuxihong 阅读(380) 评论(0) 推荐(0) 编辑
摘要: The i-th person has weight people[i], and each boat can carry a maximum weight of limit. Each boat carries at most 2 people at the same time, provided 阅读全文
posted @ 2019-01-16 13:23 yuxihong 阅读(122) 评论(0) 推荐(0) 编辑
摘要: In LeetCode Store, there are some kinds of items to sell. Each item has a price. However, there are some special offers, and a special offer consists 阅读全文
posted @ 2019-01-15 00:34 yuxihong 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 书中代码有误。书中为sort(a+1,a+n+1,Cmp)。 阅读全文
posted @ 2019-01-13 22:56 yuxihong 阅读(267) 评论(0) 推荐(0) 编辑
摘要: Given an integer array with all positive numbers and no duplicates, find the number of possible combinations that add up to a positive integer target. 阅读全文
posted @ 2019-01-13 21:18 yuxihong 阅读(148) 评论(0) 推荐(0) 编辑
摘要: Given two integer arrays A and B, return the maximum length of an subarray that appears in both arrays. Example 1: Note: Runtime: 78 ms, faster than 4 阅读全文
posted @ 2019-01-13 20:20 yuxihong 阅读(169) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 14 下一页