上一页 1 2 3 4 5 6 7 ··· 37 下一页
摘要: A Range Module is a module that tracks ranges of numbers. Your task is to design and implement the following interfaces in an efficient manner. addRan 阅读全文
posted @ 2021-02-17 01:45 Review->Improve 阅读(230) 评论(0) 推荐(0) 编辑
摘要: You are given a 0-indexed integer array nums and an integer k. You are initially standing at index 0. In one move, you can jump at most k steps forwar 阅读全文
posted @ 2021-02-16 12:05 Review->Improve 阅读(576) 评论(0) 推荐(0) 编辑
摘要: Given a rows * columns matrix mat of ones and zeros, return how many submatrices have all ones. Example 1: Input: mat = [[1,0,1], [1,1,0], [1,1,0]] Ou 阅读全文
posted @ 2021-02-16 06:13 Review->Improve 阅读(787) 评论(0) 推荐(0) 编辑
摘要: Problem Link: C - Mandarin Orange The problem can be converted to as such: Given an array A of positive integers, find out the the maximum product val 阅读全文
posted @ 2021-02-16 01:08 Review->Improve 阅读(99) 评论(0) 推荐(0) 编辑
摘要: Given a m * n matrix of ones and zeros, return how many square submatrices have all ones. Example 1: Input: matrix = [ [0,1,1,1], [1,1,1,1], [0,1,1,1] 阅读全文
posted @ 2021-02-12 12:01 Review->Improve 阅读(226) 评论(0) 推荐(0) 编辑
摘要: Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. Example 1: Input: [[1,1],[2,2],[3,3]] Output: 3 Ex 阅读全文
posted @ 2021-02-07 09:25 Review->Improve 阅读(55) 评论(0) 推荐(0) 编辑
摘要: You have a number of envelopes with widths and heights given as a pair of integers (w, h). One envelope can fit into another if and only if both the w 阅读全文
posted @ 2021-02-06 03:42 Review->Improve 阅读(121) 评论(0) 推荐(0) 编辑
摘要: You are given an array target that consists of distinct integers and another integer array arr that can have duplicates. In one operation, you can ins 阅读全文
posted @ 2021-02-06 03:18 Review->Improve 阅读(112) 评论(0) 推荐(0) 编辑
摘要: You are given a two-dimensional list of integers matrix. You are currently at the top left corner and want to move to the bottom right corner. In each 阅读全文
posted @ 2021-02-04 07:36 Review->Improve 阅读(83) 评论(0) 推荐(0) 编辑
摘要: You are given a list of integers nums and an integer k. Consider an operation where you increment any one element once(increase by 1). Given that you 阅读全文
posted @ 2021-02-03 11:58 Review->Improve 阅读(352) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 37 下一页