随笔分类 -  leetcode

leetcode examples
摘要:方法1 结论:超时 阅读全文
posted @ 2018-08-05 07:53 8亩田 阅读(106) 评论(0) 推荐(0)
摘要:question: 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 阅读全文
posted @ 2018-04-18 22:34 8亩田 阅读(374) 评论(2) 推荐(1)
摘要:Plus One question: Given a non-negative integer represented as a non-empty array of digits, plus one to the integer. You may assume the integer do not 阅读全文
posted @ 2018-04-16 19:09 8亩田 阅读(219) 评论(0) 推荐(0)
摘要:question:Remove Duplicates from Sorted Array Given a sorted array nums, remove the duplicates in-place such that each element appear only once and ret 阅读全文
posted @ 2018-04-14 09:47 8亩田 阅读(208) 评论(0) 推荐(0)