Problem
I'm a beginner and I have just approached Codeforces. I didn't know anything about DSA, Competitive Programming, etc... I want you to help me by giving some tips for solving Codeforces problems and competitive programming problems, with a question: should I look up editorial when I am stuck on a problem while practicing, or keep trying to solve them?
I appreciate anyone who gives me the answer because I've looked up on the internet and their answers are mostly too general, so I need help from guys.
Please help me answer these 2 main questions:
Tips for problem-solving (competitive programming)
Should I look up on editorial each time I get stuck?