## Analysis of the theory of virtue and talent

Title Description
Sima Guang, a historian of the Song Dynasty, has a famous "theory of virtue and talent" in Zizhi Tongjian: "therefore, it is called a saint to have all talent and virtue, a fool to have both talent and virtue, a gentleman to win virtue, and a fool to win virtue Villain. Anyone who takes a man's skill should ...

Added by **luddeb** on *Sun, 16 Jan 2022 01:58:16 +0200*

## Algorithm notes Chapter 9 tree

9.2 traversal of binary tree
A1020
This topic examines the algorithm of building a tree from a middle order sequence and another traversal sequence. The key is to write the tree building function. Since we want to build a tree, the return value can be represented by node *. And because of recursive representation, we should pay attention to t ...

Added by **rbblue8** on *Sat, 08 Jan 2022 12:52:39 +0200*

## [PAT] grade B 1003 I want to pass (20 points)

"Correct answer" is the most gratifying reply given by the automatic question judgment system. This question belongs to PAT's "correct answer" distribution - as long as the read string meets the following conditions, the system will output "correct answer", otherwise it will output "wrong answer".
The co ...

Added by **bubazoo** on *Tue, 04 Jan 2022 16:00:53 +0200*

## [PAT grade a review] topic review 9: mathematics related

Topic review 9 (9.10): mathematics related
1 maximum common divisor and minimum common multiple
Code of maximum common divisor:
int gcd(int a, int b){
if(b == 0) return a;
else return gcd(b, a%b);
}
lcm(a,b) = a / gcd(a,b) * b; //Least common multiple
2 representation of scores
Extra attention should be paid to division. If t ...

Added by **Naki-BoT** on *Sun, 19 Sep 2021 14:23:01 +0300*