上一页 1 2 3 4 5 6 7 8 ··· 37 下一页
摘要: A split of an integer array is good if: The array is split into three non-empty contiguous subarrays - named left, mid, right respectively from left t 阅读全文
posted @ 2021-01-13 05:21 Review->Improve 阅读(478) 评论(0) 推荐(0) 编辑
摘要: You are given an integer array nums of even length n and an integer limit. In one move, you can replace any integer from nums with another integer bet 阅读全文
posted @ 2021-01-06 10:10 Review->Improve 阅读(287) 评论(0) 推荐(0) 编辑
摘要: An undirected graph of n nodes is defined by edgeList, where edgeList[i] = [ui, vi, disi] denotes an edge between nodes ui and vi with distance disi. 阅读全文
posted @ 2020-12-22 10:35 Review->Improve 阅读(464) 评论(0) 推荐(0) 编辑
摘要: Given an array A of integers, for each integer A[i] we need to choose either x = -K or x = K, and add x to A[i] (only once). After this process, we ha 阅读全文
posted @ 2020-12-09 12:39 Review->Improve 阅读(145) 评论(0) 推荐(0) 编辑
摘要: We have an array A of non-negative integers. For every (contiguous) subarray B = [A[i], A[i+1], ..., A[j]] (with i <= j), we take the bitwise OR of al 阅读全文
posted @ 2020-12-05 03:41 Review->Improve 阅读(120) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers A, find the number of triples of indices (i, j, k) such that: 0 <= i < A.length 0 <= j < A.length 0 <= k < A.length A[i] & 阅读全文
posted @ 2020-09-26 02:17 Review->Improve 阅读(193) 评论(0) 推荐(0) 编辑
摘要: Given an array nums of positive integers. Your task is to select some subset of nums, multiply each element by an integer and add all these numbers. T 阅读全文
posted @ 2020-09-26 01:32 Review->Improve 阅读(322) 评论(0) 推荐(0) 编辑
摘要: You are given an n x n 2D matrix representing an image, rotate the image by 90 degrees (clockwise). You have to rotate the image in-place, which means 阅读全文
posted @ 2020-09-24 05:22 Review->Improve 阅读(98) 评论(0) 推荐(0) 编辑
摘要: Given a rows x cols binary matrix filled with 0's and 1's, find the largest rectangle containing only 1's and return its area. Example 1: Input: matri 阅读全文
posted @ 2020-09-24 04:15 Review->Improve 阅读(158) 评论(0) 推荐(0) 编辑
摘要: There are a row of n houses, each house can be painted with one of the k colors. The cost of painting each house with a certain color is different. Yo 阅读全文
posted @ 2020-09-23 13:03 Review->Improve 阅读(158) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 37 下一页