风车小站

  • 首页

  • 分类

  • 时间轴

  • 书单

  • 电影

  • 友链

  • 关于

  • 搜索

1030 Travel Plan

发表于 2020-01-16 | 分类于 algorithm , PAT
本文字数: 3.2k | 阅读时长 ≈ 3 分钟

A traveler’s map gives the distances between cities along the highways, together with the cost of each highway. Now you are supposed to write a progra ...

阅读全文 »

1003 Emergency

发表于 2020-01-16 | 更新于 2020-01-19 | 分类于 algorithm , PAT
本文字数: 3.4k | 阅读时长 ≈ 3 分钟

As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some ro ...

阅读全文 »

1076 Forwards on Weibo

发表于 2020-01-15 | 更新于 2020-01-19 | 分类于 algorithm , PAT
本文字数: 3k | 阅读时长 ≈ 3 分钟

Weibo is known as the Chinese version of Twitter. One user on Weibo may have many followers, and may follow many other users as well. Hence a social n ...

阅读全文 »

1034 Head of a Gang

发表于 2020-01-15 | 更新于 2020-01-19 | 分类于 algorithm , PAT
本文字数: 4.4k | 阅读时长 ≈ 4 分钟

题外话本题不推荐我的写法,一开始的时候没有做很好的构思,在实际操作过程中修修补补导致代码的可读性非常低。希望二刷的时候可以做进一步的改进。同学推荐晴神《算法笔记》的解题思路,有需要可自行查阅。 One way that the police finds the head of a gang is t ...

阅读全文 »

1043 Is It a Binary Search Tree

发表于 2020-01-15 | 更新于 2020-01-19 | 分类于 algorithm , PAT
本文字数: 3.5k | 阅读时长 ≈ 3 分钟

A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left subtree of a node contains only nodes ...

阅读全文 »

1053 Path of Equal Weight

发表于 2020-01-14 | 更新于 2020-01-19 | 分类于 algorithm , PAT
本文字数: 3.6k | 阅读时长 ≈ 3 分钟

Given a non-empty tree with root R, and with weight W~i~ assigned to each tree node T~i~. The weight of a path from R to L is defined to be the sum of ...

阅读全文 »

1020 Tree Traversals

发表于 2020-01-14 | 分类于 algorithm , PAT
本文字数: 2.1k | 阅读时长 ≈ 2 分钟

Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to ou ...

阅读全文 »

1052 Linked List Sorting

发表于 2020-01-14 | 分类于 algorithm , PAT
本文字数: 3k | 阅读时长 ≈ 3 分钟

A linked list consists of a series of structures, which are not necessarily adjacent in memory. We assume that each structure contains an integer key ...

阅读全文 »

1032 Sharing

发表于 2020-01-14 | 分类于 algorithm , PAT
本文字数: 2.2k | 阅读时长 ≈ 2 分钟

To store English words, one method is to use linked lists and store a word letter by letter. To save some space, we may let the words share the same s ...

阅读全文 »

1060 Are They Equal

发表于 2020-01-13 | 更新于 2020-01-12 | 分类于 algorithm , PAT
本文字数: 2.4k | 阅读时长 ≈ 2 分钟

If a machine can save only 3 significant digits, the float numbers 12300 and 12358.9 are considered equal since they are both saved as 0.123×105 with ...

阅读全文 »
1…567
丨fengche丨

丨fengche丨

风过轻轻,侧耳倾听。
65 日志
9 分类
14 标签
RSS
GitHub E-Mail QQ CSDN
推荐阅读
  • 软件推荐
  • 实用网站
  • 影视大全
  • talkop
  • 虫部落
  • 学术导航
0%
© 2019 – 2021 fengche | 站点字数合计: 240k
载入天数...载入时分秒...
人 | 次