摘要:
问题: 给定一个包含n + 1个整数的数组,其中每一个整数均介于[1, n]之间,求重复的数字。 Example 1: Input: [1,3,4,2,2] Output: 2 Example 2: Input: [3,1,3,4,2] Output: 3 Note: You must not mo 阅读全文
摘要:
问题: 给定数组,求除本位数字以外所有数字之乘积的新数组 Example: Input: [1,2,3,4] Output: [24,12,8,6] Constraint: It's guaranteed that the product of the elements of any prefix 阅读全文
摘要:
问题: 求给定数组中,最长连续递增子数组 Example 1: Input: [1,3,5,4,7] Output: 3 Explanation: The longest continuous increasing subsequence is [1,3,5], its length is 3. E 阅读全文