Skip to content

nemonameless/PAT_Advanced-And-Algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PAT_Advanced And Algorithm

来源:
https://www.patest.cn/contests/pat-a-practise
https://www.logn.me/problem/list
http://codeup.cn/problemset.php

题型分类

主要是PAT甲级:www.patest.cn/contests/pat-a-practise/1001 后四位数即题目ID
加题目链接的题为较难题

三、入门模拟

3.1 简单模拟

1002 A+B for Polynomials (25)
1042 Shuffling Machine (20)
1046 Shortest Distance (20)
1065 A+B and C (64bit) (20)
1009 Product of Polynomials (25)

3.2 查找元素

1006 Sign In and Sign Out (25)
1011 World Cup Betting (20)
1036 Boys vs Girls (25)

3.3 图形输出

1031 Hello World for U (20)

3.4 日期处理
3.5 进制转换

1019 General Palindromic Number (20)
1027 Colors in Mars (20)
1058 A+B in Hogwarts (20)

3.6 字符串处理

1001 A+B Format (20)
1005 Spell It Right (20)
1035 Password (20)
1061 Dating (20)
1073 Scientific Notation (20)
1077 Kuchiguse (20)
1082 Read Number in Chinese (25)

四、算法初步

4.1 排序

1012 The Best Rank (25)
1016 Phone Bills (25)
1025 PAT Ranking (25)
1028 List Sorting (25)
1055 The World's Richest (25)
1062 Talent and Virtue (25)
1075 PAT Judge (25)
1080 Graduate Admission (30)
1083 List Grades (25)
1095 Cars on Campus (30)

4.2 哈希

1041 Be Unique (20)
1048 Find Coins (25)
1050 String Subtraction (20)
1084 Broken Keyboard (20)
1092 To Buy or Not to Buy (20)

4.3 递归
4.4 贪心

1033 To Fill or Not to Fill (25)
1037 Magic Coupon (25)
1038 Recover the Smallest Number (30)
1067 Sort with Swap(0,※) (25)
1070 Mooncake (25)

4.5 二分

1010 Radix (25)
1044 Shopping in Mars (25)
1048 Find Coins (25)
1085 Perfect Sequence (25)

4.6 two pointers

1029 Median (25)
1048 Find Coins (25)
1085 Perfect Sequence (25)
1089 Insert or Merge (25)

4.7 高效技巧题

1093 Count PAT’s (25)
1101 Quick Sort (25)

五、数学问题

5.1 简单数学

1008 Elevator (20)
1049 Counting Ones (30)
1069 The Black Hole of Numbers (20)
1104 Sum of Number Segments (20)

5.2 gcd

1008 数组元素循环右移问题 (20)

5.3 分数的四则运算

1081 Rational Sum (20)
1088 Rational Arithmetic (20)

5.4 素数

1015 Reversible Primes (20)
1078 Hashing (25)

5.5 质因子分解

1059 Prime Factors (25)  
1096 Consecutive Factors (20)

5.6 大整数运算

1023 Have Fun with Numbers (20)  
1024 Palindromic Number (25)      

5.7 扩展欧几里得算法
5.8 组合数

六、C++标准模板库STL

6.1 vector

1039 Course List for Student (25)
1047 Student List for Course (25)

6.2 set

1063 Set Similarity (25)

6.3 string

1060 Are They Equal (25)

6.4 map

1022 Digital Library (30)
1054 The Dominant Color (20)
1071 Speech Patterns (25)
1100 Mars Numbers (20)

七、数据结构(1)

7.1 栈stack

1051 Pop Sequence (25)

7.2 队列queue、priority_queue

1056 Mice and Rice (25)

7.3 链表处理

1032 Sharing (25)
1052 Linked List Sorting (25)
1074 Reversing Linked List (25)
1097 Deduplication on a Linked List (25)

八、搜索专题

8.1 深度优先搜寻DFS

1103 Integer Factorization (30)

8.2 广度优先搜寻BFS

1091 Acute Stroke (30)

九、数据结构(2)--树、二叉树

9.2 二叉树遍历

1020 Tree Traversals (25)
1086 Tree Traversals Again (25)
1102 Invert a Binary Tree (25)

9.3 树的遍历

1004 Counting Leaves (30)
1053 Path of Equal Weight (30)
1079 Total Sales of Supply Chain (25)
1090 Highest Price in Supply Chain (25)
1094 The Largest Generation (25)
1106 Lowest Price in Supply Chain (25)

9.4 二叉排序树BST

1043 Is It a Binary Search Tree (25)
1064 Complete Binary Search Tree (30)
1099 Build A Binary Search Tree (30)

9.5 平衡二叉树AVL

1066 Root of AVL Tree (25)

9.6 并查集

1107 Social Clusters (30)
1114 Family Property (25)
1118 Birds in Forest (25)

9.7 堆

1098 Insertion or Heap Sort (25)

9.8 哈弗曼树

十、图算法

10.3 图的遍历

1021 Deepest Root (25)
1034 Head of a Gang (30)
1013 Battle Over Cities (25)
1076 Forwards on Weibo (30)     BFS

10.4 最短路径 

1003 Emergency (25)
1018 Public Bike Management (30)
1030 Travel Plan (30)
1072 Gas Station (30)
1087 All Roads Lead to Rome (30)
1111 Online Map (30)

10.5 最小生成树
10.6 拓扑排序
10.7 关键路径

十一、动态规划

11.2 最大子序列和

1007 Maximum Subsequence Sum (25)

11.3 最长不下降子序列(LIS)

1045 Favorite Color Stripe (30)

11.4 最长公共子序列(LCS)

1045 Favorite Color Stripe (30)

11.5 最长回文子串

1040 Longest Symmetric String (25)

11.6 DAG最长路
11.7 背包问题

1068 Find More Coins (30)

十二、字符串专题

12.1 字符串hash

1040 Longest Symmetric String (25)

12.2 KMP算法

十三、扩展

13.1 分块思想

1057 Stack (30)

13.2 树状数组

1057 Stack (30)    

13.3 变态模拟

1014 Waiting in Line (30)
1017 Queueing at Bank (25)
1026 Table Tennis (30)
1105 Spiral Matrix (25)

About

Algorithm practice : PAT_Advanced

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages