上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 54 下一页
摘要: We have a list of points on the plane. Find the K closest points to the origin (0, 0). (Here, the distance between two points on a plane is the Euclid 阅读全文
posted @ 2019-07-15 02:03 北叶青藤 阅读(363) 评论(0) 推荐(0)
摘要: Given N, consider a convex N-sided polygon with vertices labelled A[0], A[i], ..., A[N-1] in clockwise order. Suppose you triangulate the polygon into 阅读全文
posted @ 2019-07-09 09:33 北叶青藤 阅读(660) 评论(0) 推荐(0)
摘要: You need to construct a string consists of parenthesis and integers from a binary tree with the preorder traversing way. The null node needs to be rep 阅读全文
posted @ 2019-07-08 06:32 北叶青藤 阅读(169) 评论(0) 推荐(0)
摘要: In English, we have a concept called root, which can be followed by some other words to form another longer word - let's call this word successor. For 阅读全文
posted @ 2019-07-08 05:36 北叶青藤 阅读(191) 评论(0) 推荐(0)
摘要: In a given integer array nums, there is always exactly one largest element. Find whether the largest element in the array is at least twice as much as 阅读全文
posted @ 2019-07-08 05:10 北叶青藤 阅读(204) 评论(0) 推荐(0)
摘要: Given an array of integers A with even length, return true if and only if it is possible to reorder it such that A[2 * i + 1] = 2 * A[2 * i] for every 阅读全文
posted @ 2019-07-08 01:47 北叶青藤 阅读(220) 评论(0) 推荐(0)
摘要: Whenever you expose a web service / api endpoint, you need to implement a rate limiter to prevent abuse of the service (DOS attacks). Implement a Rate 阅读全文
posted @ 2019-07-08 00:33 北叶青藤 阅读(209) 评论(0) 推荐(0)
摘要: Design a logger system that receive stream of messages along with its timestamps, each message should be printed if and only if it is not printed in t 阅读全文
posted @ 2019-07-07 23:40 北叶青藤 阅读(281) 评论(0) 推荐(0)
摘要: There is a ball in a maze with empty spaces and walls. The ball can go through empty spaces by rolling up, down, left or right, but it won't stop roll 阅读全文
posted @ 2019-07-07 13:38 北叶青藤 阅读(495) 评论(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-07-07 10:24 北叶青藤 阅读(363) 评论(0) 推荐(0)
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 54 下一页