摘要: public ListNode deleteDuplication(ListNode pHead) { if(pHead==null){ return null; } ListNode preNode = null; ListNode curNode = pHead; w... 阅读全文
posted @ 2018-01-21 16:35 Allen101 阅读(167) 评论(0) 推荐(0)
摘要: public class DeleteNode { public static void main(String[] args){ Solution18 solution18 = new Solution18(); ListNode18 head = solution18.initLinkList(new ListNode18()); ... 阅读全文
posted @ 2018-01-21 13:00 Allen101 阅读(123) 评论(0) 推荐(0)
摘要: /*输入一个整数数组,实现一个函数来调整该数组中数字的顺序,使得所有的奇数位于数组的前半部分, 所有的偶数位于位于数组的后半部分,并保证奇数和奇数,偶数和偶数之间的相对位置不变。*/ public class ReorderArrayOddBeforeEven { public static void main(String args[]){ int intArr... 阅读全文
posted @ 2018-01-21 10:59 Allen101 阅读(280) 评论(0) 推荐(0)