原创 PAT Advanced 1087 All Roads Lead to Rome

1087 All Roads Lead to Rome Indeed there are many different tourist routes from our city to Rome. You are suppose

原创 PAT Advanced 1110 Complete Binary Tree

1110 Complete Binary Tree Given a tree, you are supposed to tell if it is a complete binary tree. Input Specifica

原创 PAT Advanced 1050 String Subtraction

1050 String Subtraction Given two strings S1 and S2, S=S1−S2 is defined to be the remaining string after taking al

原创 PAT Advanced 1024 Palindromic Number

1024 Palindromic Number A number that will be the same when it is written forwards or backwards is known as a Pali

原创 PAT Advanced 1013 Battle Over Cities

1013 Battle Over Cities It is vitally important to have all the cities connected by highways in a war. If a city i

原创 解決git中 push 出現time out無法ping通github的問題

解決git的push 出現time out的問題 無法ping通github 放假回家突然發像 git推送不上去東西了 一直打不開困擾了我好幾天,終於發現瞭解決方法 🥂​✌️​,文章參考這裏 git突然出現time out的問題

原创 PAT Advanced 1083 List Grades

1083 List Grades Given a list of N student records with name, ID and grade. You are supposed to sort the records w

原创 PAT Advanced 1094 The Largest Generation

1094 The Largest Generation A family hierarchy is usually presented by a pedigree tree where all the nodes on the

原创 PAT Advanced 1036 Boys vs Girls

1036 Boys vs Girls This time you are asked to tell the difference between the lowest grade of all the male studen

原创 PAT Advanced 1008 Elevator

1008 Elevator The highest building in our city has only one elevator. A request list is made up with N positive n

原创 PAT Advanced 1051 Pop Sequence

1051 Pop Sequence Given a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, …, N an