Good at algorithms but bad at implementation

I can think up the correct process / algorithm for most of the silver / gold questions that I’m working on, but more often than not, I fail at implementation (I know that my answers are right because I read the editorials afterwards). How can I get better and faster at this?

Practice and code more to get better coding experience.

You can read the model solution code / other contestants’ solution code to see if they used any tricks to simplify the implementation.

2 Likes