I am terrible at coding exercices

It's a fact

I am terrible at coding exercises. When i say coding exercises, i mean coding problems related to data structures and algorithms.

For example :

Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.

nums1 = [1,2,3,0,0,0], 
nums2 = [2,5,6],

Output: [1,2,2,3,5,6]

I feel when i do those kind of exercices that i am a fraud, that i don't have the skills to be a programmer.
When i see some coworkers or friends resolving those problems super fast, i just feel ... stupid.

I want to get better

I really want to get better because :

  • i always want to learn :)
  • these kind of exercises are really popular on job interviews.
  • i don't want to feel scared when i do an exercise like that.

I decided to try LeetCode but i was wondering if i could read a book or something before diving into those exercises.

For now, i am just reading some exercises and the solutions to see how they resolve it.

What about you ?

Have you ever felt like me ?

How did you overcome that ?

Do you have some resources that helped you ?

Thanks for your feedback :)

Mark Allen's photo

Elements of Programming Interviews was a great book for me. It moves from explaining simple problems to combining simple solutions together for complex problems.

Sonia Manoubi's photo

i will check it out !

Thanks for the recommendation

Mahesh Regmi's photo

I'm also in similar phase as you.

I already have 1.5 years of experience in full-stack web development but I feel like I'm not proficient enough in algorithms and data structures.

What I feel like is I need to learn these stuffs as time goes unless I feel like dang it! I can't solve this problem without knowing that one algorithm.

We'll be able to write efficient code with the help of popular data structure and algorithms but turns out in my code-base, or in my languages, those algorithms are already implemented in standard library and I can just import it.

It's essential to know algorithms to land jobs in well known company but not much important to me in my work as of now.

Show +1 replies
Sonia Manoubi's photo

i am currently doing some exercises on Leetcode once a week to progress, it's hard, but i'm trying :)

I also have these resources if you want to check them out when you have some time :

freecodecamp.org/news/tag/data-structures

Sonia Manoubi's photo

Thanks for the link !!! Mahesh Regmi