摘要: 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) 编辑