随笔分类 -  数组

摘要:题目:According to the Wikipedia's article: "The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician Jo... 阅读全文
posted @ 2015-11-02 10:31 lasclocker 阅读(161) 评论(0) 推荐(0)
摘要:Rotate an array of n elements to the right by k steps.For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,3,4].Note:... 阅读全文
posted @ 2015-09-13 10:08 lasclocker 阅读(149) 评论(0) 推荐(0)
摘要:Given a sorted integer array without duplicates, return the summary of its ranges.For example, given [0,1,2,4,5,7], return ["0->2","4->5","7"].Java代码如... 阅读全文
posted @ 2015-09-12 17:13 lasclocker 阅读(146) 评论(0) 推荐(0)