Given an array of integers, every element appears twice except for one. Find that single one. Note:Your algorithm should have a linear runtime complex Read More
posted @ 2017-03-29 15:54 rainsoul Views(140) Comments(0) Diggs(0) Edit
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 Read More
posted @ 2017-03-29 15:29 rainsoul Views(171) Comments(0) Diggs(0) Edit