摘要:
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 @ 2018-04-10 22:49
一日一更
阅读(80)
评论(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 @ 2018-04-10 20:46
一日一更
阅读(93)
评论(0)
推荐(0)
摘要:
A matrix is Toeplitz if every diagonal from top-left to bottom-right has the same element. Now given an M x N matrix, return True if and only if the m 阅读全文
posted @ 2018-04-10 20:23
一日一更
阅读(100)
评论(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 @ 2018-04-10 19:57
一日一更
阅读(61)
评论(0)
推荐(0)

浙公网安备 33010602011771号