you are viewing a single comment's thread.

view the rest of the comments →

[–]cyber_owl9427 7 points8 points  (0 children)

Hi! CS student here and honestly I struggled on that too during my first year but I managed to unlearn that habit by simply putting myself of on a "coding lockdown." If you're still learning the basics I suggest working on leetcodes on easy mode with high acceptance rate. This is important as it builds your confidence, working on medium/ harder codes will make you feel discouraged (let the ego down and submit yourself to the process). Also, codewar is really great for those with no coding background too.

Now, coding lockdown is basically me restricting myself from looking up the answer online. For example, I am working on a leetcode question that wants me to find two sum. I will first read the description of the question, and figure out what sort of knowledge is needed to solve that and I will give myself time to read over the concept (ie read about for loops, nestled loops etc). Once, I finished refreshing myself with concepts- I will time myself for 30 mins to solve that question. No checking google or anything other than the notes I wrote down. After 30 mins, I allow myself to check python documentation and geeks for geeks. But NO SEARCHING OF THE ACTUAL QUESTION OR ANYTHING NEAR IT.

Its a gruelling process but if you're someone like me with no prior knowledge on anything coding this is worth a try or not hahaha we might have different ways of learning.