随笔分类 - 链表
摘要:1.题目描述 Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1-...
阅读全文
摘要:1.题目描述 Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. 2.解法分析 ...
阅读全文
摘要:1.题目分析 Given a linked list, remove the nth node from the end of list and return its head. For example, ...
阅读全文
摘要: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...
阅读全文
摘要:1.题目描述 Reverse a linked list from position m to n. Do it in-place and in one-pass. For example: Give...
阅读全文