题目如下: In an array A containing only 0s and 1s, a K-bit flip consists of choosing a (contiguous) subarray of length K and simultaneously changing every ...
分类:
其他好文 时间:
2019-03-05 15:32:36
阅读次数:
213
Given an array of integers, return a new array such that each element at index i of the new array is the product of all the numbers in the original ar ...
分类:
其他好文 时间:
2019-03-05 09:40:43
阅读次数:
189
Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate numb ...
分类:
其他好文 时间:
2019-03-05 09:36:59
阅读次数:
158
Apart from the novice programmers, all others know that you can’t exactly represent numbers raised to some high power. For example, the C function pow ...
分类:
其他好文 时间:
2019-03-04 11:12:47
阅读次数:
169
Given an array A of 0s and 1s, we may change up to K values from 0 to 1. Return the length of the longest (contiguous) subarray that contains only 1s. ...
分类:
其他好文 时间:
2019-03-04 09:50:29
阅读次数:
92
There are N piles of stones arranged in a row. The i-th pile has stones[i] stones. A move consists of merging exactly K consecutive piles into one pil ...
分类:
其他好文 时间:
2019-03-04 09:25:03
阅读次数:
149
题目标签:Array 题目给了我们一个 边长的 array, 让我们找出 最大边长和的三角形,当然前提得是这三条边能组成三角形。如果array 里得边长组成不了三角形,返回0。 最直接的理解就是,找到三条最长的边,再判断是不是能够组成三角形,如果不行,继续去找更小得边。 所以维护三个max1,max ...
分类:
其他好文 时间:
2019-03-04 09:18:11
阅读次数:
180
target: numbers = ['2', '4', '1', '3'] 排序: 从小到大排序: 从大到小排序: 参考: https://blog.csdn.net/liao392781/article/details/80592761 ...
分类:
编程语言 时间:
2019-03-03 09:36:08
阅读次数:
161
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. Example 1: Example 2: ...
分类:
其他好文 时间:
2019-03-02 13:43:04
阅读次数:
200
序?本文是对Word页眉页脚的操作方法的进一步的阐述。在“C#添加Word页眉页脚、页码”一文中,介绍了添加简单页眉页脚的方法,该文中的方法可满足于大多数的页眉页脚添加要求,但是对于比较复杂一点的文档,对页眉页脚的添加要求比较严格的,如需要设置奇、偶页的页眉页脚不同、首页页眉页脚不同、设置页码时需要对不同章节的内容设置不同页码、对包含重要信息的页眉页脚需要设置编辑权限、相同性质的文档需要