





I recently started doing codeforces. I am able to solve most of the 800 rated problems (except strings, I have issues in string related questions). But the main thing is, I write codes they get successfully implemented too. But I'm not sure that the code is optimised, I always doubt that this is not the best way I can solve this.
How to check if my solution is optimised or not? And how to learn optimization?
Kindly suggest and guide