You can remember the meaning of 公开 with this easy mnemonic:
Public (公) nudity is against the law. Please put on your clothes when you're out in the open (开).
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.