摘要:
Given a binary array, find the maximum number of consecutive 1s in this array. Example 1: Input: [1,1,0,1,1,1] Output: 3 Explanation: The first two di 阅读全文
posted @ 2020-07-04 12:43
Schwifty
阅读(134)
评论(0)
推荐(0)
摘要:
Design and implement a data structure for Least Frequently Used (LFU) cache. It should support the following operations: get and put. get(key) - Get t 阅读全文
posted @ 2020-07-04 12:36
Schwifty
阅读(136)
评论(0)
推荐(0)
摘要:
There are 8 prison cells in a row, and each cell is either occupied or vacant. Each day, whether the cell is occupied or vacant changes according to t 阅读全文
posted @ 2020-07-04 08:31
Schwifty
阅读(179)
评论(0)
推荐(0)

浙公网安备 33010602011771号