摘要: 题目如下: You have a pointer at index 0 in an array of size arrLen. At each step, you can move 1 position to the left, 1 position to the right in the arra 阅读全文
posted @ 2019-12-15 09:17 seyjs 阅读(440) 评论(0) 推荐(0)
摘要: 题目如下: Given a square grid of integers arr, a falling path with non-zero shifts is a choice of exactly one element from each row of arr, such that no t 阅读全文
posted @ 2019-12-15 09:10 seyjs 阅读(581) 评论(0) 推荐(0)
摘要: 题目如下: Given a list of intervals, remove all intervals that are covered by another interval in the list. Interval [a,b) is covered by interval [c,d) if 阅读全文
posted @ 2019-12-15 08:58 seyjs 阅读(576) 评论(0) 推荐(0)
摘要: 题目如下: Given an integer array sorted in non-decreasing order, there is exactly one integer in the array that occurs more than 25% of the time. Return t 阅读全文
posted @ 2019-12-15 08:55 seyjs 阅读(364) 评论(0) 推荐(0)
摘要: 题目如下: Design an Iterator class, which has: A constructor that takes a string characters of sorted distinct lowercase English letters and a number comb 阅读全文
posted @ 2019-12-15 08:53 seyjs 阅读(603) 评论(0) 推荐(0)