How do I get better at proof writing?

No.12639599 ViewReplyOriginalReport
Bros I've failed my Data Structures and Algorithms exam for the second time. Before you tell me to go to /g/, I'm a master student and the exam is highly theoretical in nature. We need to write formal proofs like strong induction, contradiction, case distinction and the grading is very strict.
Now I understand the underlying algorithms but I absolutely suck dog shit at writing formal scientific proofs.
How do I get better?