摘要: Description Cycle shifting refers to following operation on the sting. Moving first letter to the end and keeping rest part of the string. For example 阅读全文
posted @ 2021-11-27 20:49 sylvia11 阅读(490) 评论(0) 推荐(0) 编辑
摘要: 清华OJ——数据结构与算法实验(中国石油大学) Description A HPS cluster is equipped with a unique task scheduler. To be simple, it is assumed that this cluster doesn’t supp 阅读全文
posted @ 2021-11-27 20:48 sylvia11 阅读(681) 评论(0) 推荐(0) 编辑
摘要: 清华OJ——数据结构与算法实验(中国石油大学) 玩具(Toy) Description ZC God is best at logical reasoning. One day, he talks about his childhood digital toys. The toy is like a 阅读全文
posted @ 2021-11-27 20:47 sylvia11 阅读(694) 评论(0) 推荐(1) 编辑
摘要: 清华OJ——数据结构与算法实验(中国石油大学) 重名剔除(Deduplicate) Description Mr. Epicure is compiling an encyclopedia of food. He had collected a long list of candidates nom 阅读全文
posted @ 2021-11-27 20:46 sylvia11 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 清华OJ——数据结构与算法实验(中国石油大学) 无线广播(Broadcast) Description A broadcaster wants to set up a radio broadcast transmitter in an area. There are n towns in the a 阅读全文
posted @ 2021-11-27 20:45 sylvia11 阅读(393) 评论(0) 推荐(0) 编辑
摘要: 清华OJ——数据结构与算法实验(中国石油大学) 旅行商(TSP) Description Shrek is a postman working in the mountain, whose routine work is sending mail to n villages. Unfortunate 阅读全文
posted @ 2021-11-27 20:43 sylvia11 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 清华OJ——数据结构与算法实验(中国石油大学) 真二叉树重构(Proper Rebuild) Description In general, given the preorder traversal sequence and postorder traversal sequence of a bin 阅读全文
posted @ 2021-11-27 20:42 sylvia11 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 清华OJ——数据结构与算法实验(中国石油大学) 列车调度(Train) Description Figure 1 shows the structure of a station for train dispatching. Figure 1 In this station, A is the en 阅读全文
posted @ 2021-11-27 20:41 sylvia11 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 灯塔(LightHouse) Description As shown in the following figure, If another lighthouse is in gray area, they can beacon each other. For example, in follow 阅读全文
posted @ 2021-11-27 20:39 sylvia11 阅读(414) 评论(0) 推荐(0) 编辑
摘要: 清华OJ——数据结构与算法实验(中国石油大学) 祖玛(Zuma) Description Let's play the game Zuma! There are a sequence of beads on a track at the right beginning. All the beads 阅读全文
posted @ 2021-11-27 20:37 sylvia11 阅读(1116) 评论(0) 推荐(0) 编辑
摘要: 清华OJ——数据结构与算法实验(中国石油大学) 范围查询(Range) Descriptioin Let S be a set of n integral points on the x-axis. For each given interval [a, b], you are asked to c 阅读全文
posted @ 2021-11-27 20:35 sylvia11 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 目录 一、知识点总结 第六章:指针、字符串、结构体、文件在游戏中的应用 二、代码实践 6.2字符雨 6.3互动粒子仿真 6.4飞机大战(升级版) 7.1可视化汉诺塔 7.2基于链表的祖玛游戏 一、知识点总结 第六章:指针、字符串、结构体、文件的应用 1 6.1指针 2 用指针在函数间传值可以避免过多 阅读全文
posted @ 2021-11-27 19:44 sylvia11 阅读(52) 评论(0) 推荐(0) 编辑