摘要:
Given a binary array, find the maximum number of consecutive 1s in this array. Example 1: Note: The input array will only contain 0 and 1. The length 阅读全文
posted @ 2017-10-15 22:21
im.lhc
阅读(157)
评论(0)
推荐(0)
摘要:
Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array. For example,Given nums = [0, 1, 阅读全文
posted @ 2017-10-15 21:16
im.lhc
阅读(270)
评论(0)
推荐(0)
摘要:
Given an integer array, find three numbers whose product is maximum and output the maximum product. Example 1: Input: [1,2,3] Output: 6 Example 2: Inp 阅读全文
posted @ 2017-10-15 19:21
im.lhc
阅读(160)
评论(0)
推荐(0)
摘要:
Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra space for another array, you 阅读全文
posted @ 2017-10-15 17:10
im.lhc
阅读(138)
评论(0)
推荐(0)
摘要:
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space fo 阅读全文
posted @ 2017-10-15 16:45
im.lhc
阅读(96)
评论(0)
推荐(0)
摘要:
Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note:You may assume that nums1 has enough space (size tha 阅读全文
posted @ 2017-10-15 16:05
im.lhc
阅读(124)
评论(0)
推荐(0)

浙公网安备 33010602011771号