Hey, I'll try my best but this is only a short answer forum. Hamlet is plagued with internal and external conflicts throughout the play. He laments over everything form his father's ghost, to vengeance, to his relationship with mother and everything in between. Hamlet struggles to be brave and decisive like his foil Fortinbras yet remain true to himself. Hamlet eventually resolves to avenge his father but in a very "Hamlet like" way. The protagonist in tragedies do come to understand the world and themselves better by the end of the play but not without their own death and a lot of collateral damage. Hamlet is no exception, but in terms of your question, he does resolve most of his problems.