You can remember the meaning of 公正 with this easy mnemonic:
A town had a public (公) statue of the first mayor standing straight (正) in honor of his just and intelligent leadership.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.