You can remember the meaning of 校长 with this easy mnemonic:
The school (校) went to great lengths (长) to find the perfect president.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.