2015年9月16日

摘要: 1 题目Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space f... 阅读全文
posted @ 2015-09-16 22:19 聆听V风声 阅读(119) 评论(0) 推荐(0) 编辑
 
摘要: 1 题目:Given a linked list, reverse the nodes of a linked listkat a time and return its modified list.If the number of nodes is not a multiple ofkthen l... 阅读全文
posted @ 2015-09-16 21:32 聆听V风声 阅读(417) 评论(0) 推荐(0) 编辑
 
摘要: 1 题目:目前被墙,看不了。2 思路:比较简单,注意处理边界点就好3 代码: public ListNode swapPairs(ListNode head) { int temp; if(head == null){ return null;... 阅读全文
posted @ 2015-09-16 10:36 聆听V风声 阅读(120) 评论(0) 推荐(0) 编辑