随笔分类 -  链表

摘要:1.题目描述 Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1-... 阅读全文
posted @ 2013-08-22 23:40 曾见绝美的阳光 阅读(265) 评论(0) 推荐(0)
摘要:1.题目描述 Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. 2.解法分析 ... 阅读全文
posted @ 2013-08-22 23:14 曾见绝美的阳光 阅读(235) 评论(0) 推荐(0)
摘要:1.题目分析 Given a linked list, remove the nth node from the end of list and return its head. For example, ... 阅读全文
posted @ 2013-08-22 17:05 曾见绝美的阳光 阅读(167) 评论(0) 推荐(0)
摘要:1.题目描述 You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes c... 阅读全文
posted @ 2013-08-19 01:27 曾见绝美的阳光 阅读(246) 评论(0) 推荐(0)
摘要:1.题目描述 Reverse a linked list from position m to n. Do it in-place and in one-pass. For example: Give... 阅读全文
posted @ 2013-08-18 16:13 曾见绝美的阳光 阅读(217) 评论(0) 推荐(0)