摘要: Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number and not the 阅读全文
posted @ 2016-03-26 09:51 YuriFLAG 阅读(174) 评论(0) 推荐(0)
摘要: Find the nth to last element of a singly linked list. The minimum number of nodes in list is n. Example Given a List 3->2->1->5->null and n = 2, retur 阅读全文
posted @ 2016-03-26 09:12 YuriFLAG 阅读(195) 评论(0) 推荐(0)