随笔分类 -  数据结构---链表

摘要:题目:1074 Reversing Linked List (25分) 题意 给N个链表结点,以及K,对每K个长度的链表做逆置,输出逆置后的链表。 Sample Input: 00100 6 4 00000 4 99999 00100 1 12309 68237 6 -1 33218 3 00000 阅读全文
posted @ 2020-08-01 23:14 liuyongliu 阅读(157) 评论(0) 推荐(0) 编辑
摘要:题目 https://pintia.cn/problem-sets/994805342720868352/problems/994805425780670464 题意 给出链表每个结点信息 address key next 按key排序再输出 Sample Input: 5 00001 11111 阅读全文
posted @ 2020-08-01 00:30 liuyongliu 阅读(132) 评论(0) 推荐(0) 编辑
摘要:02-线性结构3 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. Fo 阅读全文
posted @ 2020-03-11 22:45 liuyongliu 阅读(269) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示