上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 98 下一页
摘要: Your are given an array of positive integers nums. Count and print the number of (contiguous) subarrays where the product of all the elements in the s 阅读全文
posted @ 2019-04-05 15:10 Veritas_des_Liberty 阅读(323) 评论(0) 推荐(0) 编辑
摘要: Given a non-empty array of non-negative integers nums, the degree of this array is defined as the maximum frequency of any one of its elements. Your t 阅读全文
posted @ 2019-04-05 14:38 Veritas_des_Liberty 阅读(209) 评论(0) 推荐(0) 编辑
摘要: Given a non-negative integer, you could swap two digits at most once to get the maximum valued number. Return the maximum valued number you could get. 阅读全文
posted @ 2019-04-04 15:54 Veritas_des_Liberty 阅读(196) 评论(0) 推荐(0) 编辑
摘要: Given two integers n and k, you need to construct a list which contains n different positive integers ranging from 1 to n and obeys the following requ 阅读全文
posted @ 2019-04-04 14:05 Veritas_des_Liberty 阅读(185) 评论(0) 推荐(0) 编辑
摘要: Given a 2D integer matrix M representing the gray scale of an image, you need to design a smoother to make the gray scale of each cell becomes the ave 阅读全文
posted @ 2019-04-04 11:39 Veritas_des_Liberty 阅读(234) 评论(0) 推荐(0) 编辑
摘要: Given an integer array, you need to find one continuous subarray that if you only sort this subarray in ascending order, then the whole array will be 阅读全文
posted @ 2019-04-02 22:33 Veritas_des_Liberty 阅读(201) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k. Example 1: Note: The len 阅读全文
posted @ 2019-04-02 10:27 Veritas_des_Liberty 阅读(167) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements that appear twi 阅读全文
posted @ 2019-04-01 12:03 Veritas_des_Liberty 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 1029. Binary Prefix Divisible By 5 Given an array A of 0s and 1s, consider N_i: the i-th subarray from A[0] to A[i] interpreted as a binary number (fr 阅读全文
posted @ 2019-03-31 12:15 Veritas_des_Liberty 阅读(201) 评论(0) 推荐(0) 编辑
摘要: Given an array, rotate the array to the right by k steps, where k is non-negative. Example 1: Example 2: Note: Try to come up as many solutions as you 阅读全文
posted @ 2019-03-30 11:29 Veritas_des_Liberty 阅读(162) 评论(0) 推荐(0) 编辑
上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 98 下一页