链表
逃课去学习:)
读万卷书,行万里路。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
PAT(链表)——1032. Sharing (25)-PAT甲级真题
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,...原创 2019-02-02 13:05:07 · 380 阅读 · 0 评论 -
PAT(链表)——1052. Linked List Sorting (25)-PAT甲级真题
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 give...原创 2019-02-02 13:57:23 · 254 阅读 · 0 评论 -
PAT(链表)——1074. Reversing Linked List (25)
Given a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. For example, given L being 1→2→3→4→5→6, if K = 3, then you must output 3→2→1→6→5→4; if K ...原创 2019-02-02 16:06:05 · 166 阅读 · 0 评论 -
PAT(链表)——1097. Deduplication on a Linked List (25)
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 or a...原创 2019-02-02 17:41:51 · 190 阅读 · 0 评论
分享