- 博客(5)
- 收藏
- 关注
原创 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
104
原创 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
1472
原创 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
1305
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人