07 2017 档案

摘要:Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements of [1, n] 阅读全文
posted @ 2017-07-10 13:01 __Meng 阅读(156) 评论(0) 推荐(0) 编辑
摘要: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 @ 2017-07-08 20:37 __Meng 阅读(143) 评论(0) 推荐(0) 编辑
摘要:Given an integer array, find three numbers whose product is maximum and output the maximum product. Example 1: Input: [1,2,3] Output: 6 Example 2: Inp 阅读全文
posted @ 2017-07-06 13:33 __Meng 阅读(148) 评论(0) 推荐(0) 编辑
摘要:Given a binary array, find the maximum number of consecutive 1s in this array. Example 1: 阅读全文
posted @ 2017-07-04 13:50 __Meng 阅读(124) 评论(0) 推荐(0) 编辑
摘要:Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), ..., (an, bn) which makes sum of 阅读全文
posted @ 2017-07-01 13:20 __Meng 阅读(122) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示