2015年4月16日
摘要: 题目链接https://leetcode.com/problems/remove-element/这道题比较简单,为了维护这个leetcode系列的完整性,我依然把它加在这里,code如下class Solution {public: int removeElement(int A[], in... 阅读全文
posted @ 2015-04-16 01:17 小虎是枪王 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 题目链接https://leetcode.com/problems/rotate-array/这道题主要是想明白rotate是怎样完成的,举个例子{1,2,3,4,5,6,7}, k=3我们发现完成rotate 3需要进行一下三步1)reverse array {1,2,3,4,5,6,7} => ... 阅读全文
posted @ 2015-04-16 01:08 小虎是枪王 阅读(174) 评论(0) 推荐(0) 编辑