摘要: 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 @ 2018-09-29 14:29 轻风舞动 阅读(542) 评论(0) 推荐(0) 编辑
摘要: Design a hit counter which counts the number of hits received in the past 5 minutes. Each function accepts a timestamp parameter (in seconds granulari 阅读全文
posted @ 2018-09-29 14:11 轻风舞动 阅读(488) 评论(0) 推荐(0) 编辑
摘要: Given a sorted array of integers nums and integer values a, b and c. Apply a function of the form f(x) = ax2 + bx + c to each element x in the array. 阅读全文
posted @ 2018-09-29 13:42 轻风舞动 阅读(578) 评论(0) 推荐(0) 编辑
摘要: You are given a list of non-negative integers, a1, a2, ..., an, and a target, S. Now you have 2 symbols + and -. For each integer, you should choose o 阅读全文
posted @ 2018-09-29 12:32 轻风舞动 阅读(468) 评论(0) 推荐(0) 编辑
摘要: https://www.interviewbit.com/problems/design-cache/ Features: This is the first part of any system design interview, coming up with the features which 阅读全文
posted @ 2018-09-29 08:46 轻风舞动 阅读(552) 评论(0) 推荐(0) 编辑
摘要: You're now a baseball game point recorder. Given a list of strings, each string can be one of the 4 following types: Each round's operation is permane 阅读全文
posted @ 2018-09-29 08:02 轻风舞动 阅读(243) 评论(0) 推荐(0) 编辑
摘要: Given an unsorted array of integers, find the length of longest continuous increasing subsequence (subarray). Example 1: Example 2: Note: Length of th 阅读全文
posted @ 2018-09-29 07:15 轻风舞动 阅读(379) 评论(0) 推荐(0) 编辑
摘要: Given an unsorted array of integers, find the number of longest increasing subsequence. Example 1: Example 2: Note: Length of the given array will be 阅读全文
posted @ 2018-09-29 06:05 轻风舞动 阅读(457) 评论(0) 推荐(0) 编辑
摘要: In a N x N grid representing a field of cherries, each cell is one of three possible integers. 0 means the cell is empty, so you can pass through; 1 m 阅读全文
posted @ 2018-09-29 03:31 轻风舞动 阅读(793) 评论(0) 推荐(0) 编辑