摘要:
描述 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, 阅读全文
摘要:
描述 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 阅读全文
摘要:
描述 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 阅读全文