上一页 1 2 3 4 5 6 ··· 22 下一页
摘要: Description Given two 1d vectors, implement an iterator to return their elements alternately. Example Example1 Input: v1 = [1, 2] and v2 = [3, 4, 5, 6 阅读全文
posted @ 2019-12-21 22:47 YuriFLAG 阅读(132) 评论(0) 推荐(0)
摘要: Description Given a 2D grid, each cell is either an house 1 or empty 0 (the number zero, one), find the place to build a post office, the distance tha 阅读全文
posted @ 2019-12-21 22:45 YuriFLAG 阅读(330) 评论(0) 推荐(0)
摘要: Description Given a 2D grid, each cell is either a wall 2, an house 1 or empty 0 (the number zero, one, two), find a place to build a post office so t 阅读全文
posted @ 2019-12-21 22:42 YuriFLAG 阅读(269) 评论(0) 推荐(0)
摘要: Description Design an iterator over a binary search tree with the following rules: Description Design an iterator over a binary search tree with the f 阅读全文
posted @ 2019-12-21 22:40 YuriFLAG 阅读(153) 评论(0) 推荐(0)
摘要: Description Given an array of n * m matrix, and a moving matrix window (size k * k), move the window from top left to bottom right at each iteration, 阅读全文
posted @ 2019-12-21 22:36 YuriFLAG 阅读(234) 评论(0) 推荐(0)
摘要: Description Given an integer array, find a subarray with sum closest to zero. Return the indexes of the first number and last number. Description Give 阅读全文
posted @ 2019-12-21 22:35 YuriFLAG 阅读(140) 评论(0) 推荐(0)
摘要: Description Given an array of n positive integers and a positive integer s, find the minimal length of a subarray of which the sum ≥ s. If there isn't 阅读全文
posted @ 2019-12-21 22:33 YuriFLAG 阅读(271) 评论(0) 推荐(0)
摘要: Description Description Find the kth smallest number in a row and column sorted matrix. Each row and each column of the matrix is incremental. Example 阅读全文
posted @ 2019-12-21 22:32 YuriFLAG 阅读(199) 评论(0) 推荐(0)
摘要: Description Given an unsorted array, find the maximum difference between the successive elements in its sorted form. Description Given an unsorted arr 阅读全文
posted @ 2019-12-21 22:28 YuriFLAG 阅读(258) 评论(0) 推荐(0)
摘要: Description Given an positive integer array A and an interval. Return the number of subarrays whose sum is in the range of given interval. Description 阅读全文
posted @ 2019-12-21 22:27 YuriFLAG 阅读(145) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 22 下一页