You can remember the meaning of 公众 with this easy mnemonic:
I don't like going out in public (公). There is a multitude (众) of germs and people outside.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.