摘要: Given a linked list, determine if it has a cycle in it. Given a linked list, determine if it has a cycle in it. Given a linked list, determine if it h 阅读全文
posted @ 2017-10-13 12:42 Review->Improve 阅读(174) 评论(0) 推荐(0) 编辑
摘要: Merge two sorted (ascending) linked lists and return it as a new sorted list. The new sorted list should be made by splicing together the nodes of the 阅读全文
posted @ 2017-10-13 12:27 Review->Improve 阅读(140) 评论(0) 推荐(0) 编辑
摘要: Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You should preserve the 阅读全文
posted @ 2017-10-13 12:16 Review->Improve 阅读(248) 评论(0) 推荐(0) 编辑
摘要: Sort a linked list using insertion sort. Sort a linked list using insertion sort. Sort a linked list using insertion sort. Example Given 1->3->2->0->n 阅读全文
posted @ 2017-10-13 11:47 Review->Improve 阅读(162) 评论(0) 推荐(0) 编辑
摘要: Given a node from a cyclic linked list which has been sorted, write a function to insert a value into the list such that it remains a cyclic sorted li 阅读全文
posted @ 2017-10-13 11:16 Review->Improve 阅读(192) 评论(0) 推荐(0) 编辑