上一页 1 2 3 4 5 6 ··· 10 下一页

2019年5月11日

摘要: In MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a new one with different size but keep its original data. 阅读全文
posted @ 2019-05-11 00:34 一直走在路上 阅读(121) 评论(0) 推荐(0)

2019年5月10日

摘要: Suppose you have a long flowerbed in which some of the plots are planted and some are not. However, flowers cannot be planted in adjacent plots - they 阅读全文
posted @ 2019-05-10 10:07 一直走在路上 阅读(106) 评论(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-05-10 07:48 一直走在路上 阅读(99) 评论(0) 推荐(0)
摘要: Given an integer array, find three numbers whose product is maximum and output the maximum product. Example 1: Example 2: Note: Idea 1. Bruteforce, th 阅读全文
posted @ 2019-05-10 05:42 一直走在路上 阅读(129) 评论(0) 推荐(0)

2019年5月9日

摘要: Given an unsorted array of integers, find the length of longest continuous increasing subsequence (subarray). Example 1: Example 2: Idea 1. Dynamic pr 阅读全文
posted @ 2019-05-09 10:17 一直走在路上 阅读(92) 评论(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-05-09 09:53 一直走在路上 阅读(97) 评论(0) 推荐(0)
摘要: We have two special characters. The first character can be represented by one bit 0. The second character can be represented by two bits (10 or 11). N 阅读全文
posted @ 2019-05-09 08:25 一直走在路上 阅读(95) 评论(0) 推荐(0)
摘要: Given an array of integers nums, write a method that returns the "pivot" index of this array. We define the pivot index as the index where the sum of 阅读全文
posted @ 2019-05-09 05:18 一直走在路上 阅读(111) 评论(0) 推荐(0)
摘要: On a staircase, the i-th step has some non-negative cost cost[i] assigned (0 indexed). Once you pay the cost, you can either climb one or two steps. Y 阅读全文
posted @ 2019-05-09 04:54 一直走在路上 阅读(129) 评论(0) 推荐(0)
摘要: In a given integer array nums, there is always exactly one largest element. Find whether the largest element in the array is at least twice as much as 阅读全文
posted @ 2019-05-09 02:28 一直走在路上 阅读(86) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 10 下一页

导航