摘要: Given a linked list, determine if it has a cycle in it. Example Given -21->10->4->5, tail connects to node index 1, return true Given -21->10->4->5, t 阅读全文
posted @ 2017-11-19 13:02 jasminemzy 阅读(86) 评论(0) 推荐(0) 编辑
摘要: A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null. Return a deep copy 阅读全文
posted @ 2017-11-19 05:38 jasminemzy 阅读(102) 评论(0) 推荐(0) 编辑
摘要: Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. If the number of nodes is not a multiple of k then l 阅读全文
posted @ 2017-11-19 03:55 jasminemzy 阅读(128) 评论(0) 推荐(0) 编辑