风车小站

  • 首页

  • 分类

  • 时间轴

  • 书单

  • 电影

  • 友链

  • 关于

  • 搜索

1150 Travelling Salesman Problem

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

The “travelling salesman problem” asks the following question: “Given a list of cities and the distances between each pair of cities, what is the shor ...

阅读全文 »

1152 Google Recruitment

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

In July 2004, Google posted on a giant billboard along Highway 101 in Silicon Valley (shown in the picture below) for recruitment. The content is supe ...

阅读全文 »

1153 Decode Registration Card of PAT

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

A registration card number of PAT consists of 4 parts: the 1st letter represents the test level, namely, T for the top level, A for advance and B for ...

阅读全文 »

1065 A+B and C (64bit)

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

Given three integers A, B and C in [−2^63^,2^63^], you are supposed to tell whether A+B>C. Input Specification:The first line of the input gives the p ...

阅读全文 »

1006 Sign In and Sign Out

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

At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door ...

阅读全文 »

1004 Counting Leaves

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

A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child. Input Specification:Each inpu ...

阅读全文 »

1094 The Largest Generation

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

A family hierarchy is usually presented by a pedigree tree where all the nodes on the same level belong to the same generation. Your task is to find t ...

阅读全文 »

1154 Vertex Coloring

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

A proper vertex coloring is a labeling of the graph’s vertices with colors such that no two vertices sharing the same edge have the same color. A colo ...

阅读全文 »

1155 Heap Paths

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

In computer science, a heap is a specialized tree-based data structure that satisfies the heap property: if P is a parent node of C, then the key (the ...

阅读全文 »

1057 Stack

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

Stack is one of the most fundamental data structures, which is based on the principle of Last In First Out (LIFO). The basic operations include Push ( ...

阅读全文 »
1…4567
丨fengche丨

丨fengche丨

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