There seems to be a lot of implicit and undocumented tips for getting reputation here. Let's start with answers: how do I get upvotes for my answers? Feel free to post more tips here.
If you posted your answer, don't leave yet!
If you leave your answer alone after you posted your answer, others might post solutions with more impressive approaches. If you left you are going to lose all that fun of porting the ideas of other people. The easiest thing to get upvotes is to port others' impressive answers as your own answer.
Advertise your answer in the public, e.g. the chat.
If you posted a link to your answer, you might be able to get more upvotes to your answer, since it is made more public. This only works if your answer is creative enough - if your answer is boring, they won't upvote it.