

CodePudding user response:
For the back of the semicolonCodePudding user response:
Logically, to optimize theSuppose your gold tower have n layer, you need to output n lines, each line, there are two things: 1. The space in front of,
2. The letterThe first line is in front of the (n - 1)/2 Spaces 1 letter
The second line is in front of the (n - 2)/2 Spaces 2 letter
So on
The front line of the output I (n - I)/Spaces letters I
Such two layers of cycle
CodePudding user response: