PAT
文章平均质量分 84
zhang12308
老和山职业技术学院 萌新炼丹师
展开
-
1163 Dijkstra Sequence (30 分) PAT
Dijkstra原创 2022-03-27 11:02:02 · 418 阅读 · 0 评论 -
1164 Good in C (20 分) PAT
When your interviewer asks you to write "Hello World" using C, can you do as the following figure shows?Input Specification:Each input file contains one test case. For each case, the first part gives the 26 capital English letters A-Z, each in a7×5..原创 2022-03-27 10:47:25 · 139 阅读 · 0 评论 -
1165 Block Reversing (25 分) PAT
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原创 2022-03-27 10:40:26 · 1499 阅读 · 0 评论 -
1166 Summit (25 分) PAT
PAT 1166原创 2022-03-27 10:32:14 · 339 阅读 · 0 评论 -
1167 Cartesian Tree (30 分) PAT
ACartesian treeis a binary tree constructed from a sequence of distinct numbers. The tree is heap-ordered, and an inorder traversal returns the original sequence. For example, given the sequence { 8, 15, 3, 4, 1, 5, 12, 10, 18, 6 }, the min-heap Cartesia..原创 2022-03-27 10:09:17 · 1334 阅读 · 0 评论