分类: 算法-数据结构
-
关于算法-数据结构:PAT甲级2020年春季考试-72-The-Judger
A game of numbers has the following rules: at the begin…
-
关于算法-数据结构:PAT甲级2020年春季考试-73-Safari-Park
A safari park(家养动物园)has K species of animals, and is di…
-
关于算法-数据结构:PAT甲级2020年春季考试-71-Prime-Day
The above picture is from Sina Weibo, showing May 23rd,…
-
关于算法-数据结构:PAT甲级2019年秋季考试-74-Dijkstra-Sequence
Dijkstra’s algorithm is one of the very famous greedy a…
-
关于算法-数据结构:PAT甲级2019年秋季考试-73-Postfix-Expression
Given a syntax tree (binary), you are supposed to outpu…
-
关于算法-数据结构:PAT甲级2019年秋季考试-72-Merging-Linked-Lists
Given two singly linked lists L1=$a_1$→$a_2$→⋯→$…
-
关于算法-数据结构:PAT甲级2019年秋季考试-71-Forever
“Forever number” is a positive integer A with K digits,…
-
关于算法-数据结构:PAT甲级2019年冬季考试-74-Cartesian-Tree
A Cartesian tree is a binary tree constructed from a se…
-
关于算法-数据结构:PAT甲级2019年冬季考试-73-Summit
A summit (峰会) is a meeting of heads of state or governm…
-
关于算法-数据结构:PAT甲级2019年冬季考试-72-Block-Reversing
Given a singly linked list L. Let us consider every K n…