摘要: Problem : 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 orig 阅读全文
posted @ 2020-04-16 23:36 littledy 阅读(101) 评论(0) 推荐(0)
摘要: Problem : Given an integer array with even length, where different numbers in this array represent different kinds of candies. Each number means one c 阅读全文
posted @ 2020-04-16 23:15 littledy 阅读(95) 评论(0) 推荐(0)
摘要: Problem : We define a harmounious array as an array where the difference between its maximum value and its minimum value is exactly 1. Now, given an i 阅读全文
posted @ 2020-04-16 22:47 littledy 阅读(73) 评论(0) 推荐(0)
摘要: Problem : Given an m n matrix M initialized with all 0's and several update operations. Operations are represented by a 2D array, and each operation i 阅读全文
posted @ 2020-04-16 22:13 littledy 阅读(96) 评论(0) 推荐(0)
摘要: Problem : Suppose Andy and Doris want to choose a restaurant for dinner, and they both have a list of favorite restaurants represented by strings. You 阅读全文
posted @ 2020-04-16 17:38 littledy 阅读(86) 评论(0) 推荐(0)