![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
pat
ZOE_ZHU
这个作者很懒,什么都没留下…
展开
-
PAT甲级 1165 Block Reversing (25分)
Given a singly linked list L. Let us consider every K nodes as a block (if there are less than K nodes at the end of the list, the rest of the nodes are still considered as a block). Your job is to reverse all the blocks in L. For example, given L as 1→2→3原创 2020-08-16 20:05:04 · 292 阅读 · 0 评论 -
PAT甲级 1161 Merging Linked Lists
PAT甲级 1161 Merging Linked Lists欢迎使用Markdown编辑器你好! 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Markdown编辑器, 可以仔细阅读这篇文章,了解一下Markdown的基本语法知识。新的改变在这里插入代码片#include<iostream>#include<vector>using namespace std;struct node{ int id, dat, next; };i原创 2020-08-15 17:05:50 · 453 阅读 · 0 评论