![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
静态链表
SASAKI_130
程序小白
展开
-
A1097 Deduplication on a Linked List (25分)【C语言】
A1097 Deduplication on a Linked List (25分)【C语言】 原题链接 题目描述: Given a singly linked list L with integer keys, you are supposed to remove the nodes with duplicated absolute values of the keys. That is, for each value K, only the first node of which the value o原创 2020-07-20 11:52:01 · 145 阅读 · 0 评论 -
A1052 Linked List Sorting (25分)【C语言】
A1052 Linked List Sorting (25分)【C语言】 原题链接 题目描述: A linked list consists of a series of structures, which are not necessarily adjacent in memory. We assume that each structure contains an integer key and a Next pointer to the next structure. Now given a link原创 2020-07-20 11:32:17 · 223 阅读 · 0 评论 -
B1025/A1074 反转链表 (25分)【C语言】
B1025/A1074 反转链表 (25分)【C语言】 原题链接 题目描述: 给定一个常数 K 以及一个单链表 L,请编写程序将 L 中每 K 个结点反转。例如:给定 L 为 1→2→3→4→5→6,K 为 3,则输出应该为 3→2→1→6→5→4;如果 K 为 4,则输出应该为 4→3→2→1→5→6,即最后不到 K 个元素不反转。 输入格式: 每个输入包含 1 个测试用例。每个测试用例第 1 行给出第 1 个结点的地址、结点总个数正整数 N (≤105 )、以及正整数 K (≤N),即要求反转的子原创 2020-07-19 15:19:44 · 233 阅读 · 0 评论 -
A1032 Sharing (25分)【C语言】
A1032 Sharing (25分)【C语言】 原题链接 查找两个静态链表第一个共同地址 题目描述: To store English words, one method is to use linked lists and store a word letter by letter. To save some space, we may let the words share the same sublist if they share the same suffix. For example, loa原创 2020-07-19 14:45:32 · 158 阅读 · 0 评论