I recently started to learn how to code in C++ since I couldn't solve a problem in Python because of TLE. However, sometimes I know the general answer to a problem and how to code it by myself with what I've learned but it can be a bit clunky. I wonder if it's better to code it that way or look at the editorial or somewhere how this could be coded better ?







