
array
liveway6
这个作者很懒,什么都没留下…
展开
-
LeetCode--448
448. Find All Numbers Disappeared in an Array题目概述Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once.Find all the elements of [1, n] inc原创 2017-03-01 20:47:44 · 476 阅读 · 1 评论 -
LeetCode--485
485. Max Consecutive Ones题目概述Given a binary array, find the maximum number of consecutive 1s in this array.Example 1:nput: [1,1,0,1,1,1] Output: 3 Explanation: The first two digits or the last three di原创 2017-02-26 21:40:47 · 710 阅读 · 0 评论