原创 PAT_1041: Be Unique

Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winnin

原创 POJ_2386: Lake Counting

Description Due to recent rains, water has pooled in various places in Farmer John's field, which is represented by a

原创 PAT_1052: Linked List Sorting

A linked list consists of a series of structures, which are not necessarily adjacent in memory. We assume that each s

原创 PAT_1021: Deepest Root

A graph which is connected and acyclic can be considered a tree. The height of the tree depends on the selected root.

原创 PAT_1022: Digital Library

A Digital Library contains millions of books, stored according to their titles, authors, key words of their abstracts,

原创 PAT_1062:Talent and Virtue

About 900 years ago, a Chinese philosopher Sima Guang wrote a history book in which he talked about people's talent an

原创 PAT_1032: Sharing

To store English words, one method is to use linked lists and store a word letter by letter. To save some space, we ma

原创 PAT_1034: Head of a Gang

One way that the police finds the head of a gang is to check people's phone calls. If there is a phone call between A

原创 PAT_1025: PAT Ranking

Programming Ability Test (PAT) is organized by the College of Computer Science and Technology of Zhejiang University.

原创 PAT_1056: Mice and Rice

Mice and Rice is the name of a programming contest in which each programmer must write a piece of code to control the

原创 PAT_1061: Dating

Sherlock Holmes received a note with some strange strings: "Let's date! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d

原创 PAT_1038: Recover the Smallest Number

Given a collection of number segments, you are supposed to recover the smallest number from them. For example, given {

原创 Google Practice Round_C: Moist

Problem Moist has a hobby -- collecting figure skating trading cards. His card collection has been growing, and it is n

原创 Paper Notes: Fast unfolding of communities in large networks

Paper title: Fast unfolding of communities in large networks Author: Vincent D Blondel, Jean-Loup Guillaume, Renaud Lam

原创 Google Practice Round_A: Bad Horse

Problem As the leader of the Evil League of Evil, Bad Horse has a lot of problems to deal with. Most r