摘要:
DescriptionGiven n points in the plane that are all pairwise distinct, a “boomerang” is a tuple of points (i, j, k) such that the distance bet... 阅读全文
摘要:
Description Given a string s and a string t, check if s is subsequence of t. You may assume that there is only lower case English letters in b... 阅读全文
摘要:
DescriptionSuppose you have a random list of people standing in a queue. Each person is described by a pair of integers (h, k), where h is the... 阅读全文
摘要:
DescriptionAssume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. E... 阅读全文
摘要:
DescriptionGiven an array of integers sorted in ascending order, find the starting and ending position of a given target value.Your algorithm’... 阅读全文
摘要:
338. Counting BitsDescriptionGiven a non-negative integer number num. For every number i in the range 0 ≤ i ≤ num calculate the number of 1’s ... 阅读全文