摘要: 描述 Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non zero elements. For example, 阅读全文
posted @ 2017-05-01 11:39 larryking 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 描述 Given a non empty array of integers, return the third maximum number in this array. If it does not exist, return the maximum number. The time compl 阅读全文
posted @ 2017-05-01 11:38 larryking 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 描述 Given a binary array, find the maximum number of consecutive 1s in this array. Example 1: Input: [1,1,0,1,1,1] Output: 3 Explanation: The first two 阅读全文
posted @ 2017-05-01 11:37 larryking 阅读(136) 评论(0) 推荐(0) 编辑