# Is needing a hint almost every challenge a problem?

**URL:** <https://forum.freecodecamp.org/t/is-needing-a-hint-almost-every-challenge-a-problem/520172>\
**Category:** I Built This\
**Created:** [June 21, 2022, 3:48am UTC](https://forum.freecodecamp.org/t/is-needing-a-hint-almost-every-challenge-a-problem/520172 "2022-06-21T03:48:23Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bullfrog](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/bullfrog/32/248085_2.png) [@Bullfrog](https://forum.freecodecamp.org/u/Bullfrog)\
**Post date:** [June 21, 2022, 3:48am UTC](https://forum.freecodecamp.org/t/is-needing-a-hint-almost-every-challenge-a-problem/520172/1 "2022-06-21T03:48:23Z")

</div>

Right now I’m taking the Basic Algorithms section of the JavaScript Data Types and Algorithms course, and I’m getting stuck and looking at a solution almost every time. Every time I do I think something along the lines of “How didn’t I think of that? It was so simple!”. I noticed I’ve had many problems overcomplicating the building of the algorithms in this section. Is it normal to use this many hints and solutions, and is it hindering my learning process?

---

<div class="post-metadata">

**Author:** ![JeremyLT](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jeremylt/32/291894_2.png) [@JeremyLT](https://forum.freecodecamp.org/u/JeremyLT)\
**Post date:** [June 21, 2022, 4:45am UTC](https://forum.freecodecamp.org/t/is-needing-a-hint-almost-every-challenge-a-problem/520172/2 "2022-06-21T04:45:14Z")

</div>

Unfortunately, once you start using the solutions, you are practicing different skills. Writing code and reading code are not the same thing. Reading code won’t help you write code. Watching sports doesn’t make you a star player, right?

A more helpful strategy is to ask questions so that others can help you write the solution yourself.

---

<div class="post-metadata">

**Author:** ![Bullfrog](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/bullfrog/32/248085_2.png) [@Bullfrog](https://forum.freecodecamp.org/u/Bullfrog)\
**Post date:** [June 21, 2022, 2:13pm UTC](https://forum.freecodecamp.org/t/is-needing-a-hint-almost-every-challenge-a-problem/520172/3 "2022-06-21T14:13:24Z")

</div>

Thank you for this answer!! I’ll be on the forum more often now for this. Thanks 😃

---

<div class="post-metadata">

**Author:** ![kevinSmith](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kevinsmith/32/72934_2.png) [@kevinSmith](https://forum.freecodecamp.org/u/kevinSmith)\
**Post date:** [June 21, 2022, 2:22pm UTC](https://forum.freecodecamp.org/t/is-needing-a-hint-almost-every-challenge-a-problem/520172/4 "2022-06-21T14:22:14Z")

</div>

I mean, I would say that reading does help _somewhat_. I mean, athletes watch and analyze sports footage all the time or read books on fine points, etc. But they don’t _only_ do that - the most important thing is quality time on the field and the gym. And I agree that reading code in this context will make it more difficult to learn to actually write it. But I agree with the conclusion.

Algorithms can be hard. And unfortunately we throw a huge pile of them at you all at once (I wish we could sprinkle them around). Don’t get frustrated, most people struggle here.

But if you run into trouble, definitely ask. Looking at the solution should be a last resort, the nuclear option - you will learn a lot from your struggles.

Now, _after_ you have solved the algorithm, that is an _ **EXCELLENT** _ time to look at other solutions, see how other people solved it, what optimizations they found, etc. I used to do those algorithm challenge sites and I learned a lot from seeing other people’s solutions. Of course, with those sites, you usually can’t see them until after you have successfully solved them - that is a good thing.

---

<div class="post-metadata">

**Author:** ![JeremyLT](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jeremylt/32/291894_2.png) [@JeremyLT](https://forum.freecodecamp.org/u/JeremyLT)\
**Post date:** [June 21, 2022, 2:24pm UTC](https://forum.freecodecamp.org/t/is-needing-a-hint-almost-every-challenge-a-problem/520172/5 "2022-06-21T14:24:29Z")

</div>

> [@kevinSmith](#):
>
> Now, _after_ you have solved the algorithm, that is an _ **EXCELLENT** _ time to look at other solutions, see how other people solved it, what optimizations they found, etc.

Totally agree here. Taking apart and comparing other solutions with the one you just wrote is a great thing to do.

---

<div class="post-metadata">

**Author:** ![Bullfrog](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/bullfrog/32/248085_2.png) [@Bullfrog](https://forum.freecodecamp.org/u/Bullfrog)\
**Post date:** [June 21, 2022, 2:37pm UTC](https://forum.freecodecamp.org/t/is-needing-a-hint-almost-every-challenge-a-problem/520172/6 "2022-06-21T14:37:57Z")

</div>

Thank you for the advice!! I do agree and see how this would work :). I’m going to use this!

---

<div class="post-metadata">

**Author:** ![okibe007](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/okibe007/32/242102_2.png) [@okibe007](https://forum.freecodecamp.org/u/okibe007)\
**Post date:** [June 21, 2022, 2:57pm UTC](https://forum.freecodecamp.org/t/is-needing-a-hint-almost-every-challenge-a-problem/520172/7 "2022-06-21T14:57:56Z")

</div>

To add to what has been said, what helped me the most when going through the algorithm section was writing down every step I thought I needed to solve the problem then coding these steps in order, this way if there’s a step I don’t understand how to code, I just google that part learn how to code it and move on, once adopted this approach the challenges became much more manageable for me.  
As an example say I’m asked to find the longest word in a string , my editor would look something like this before any code:  
// I need to go through each word in the string  
// On each word, I need to find the number of letters  
//I need to keep track of this number  
// I need to update this number when the next number is greater.  
With this approach my odds of solving the challenges dramatically improved

---

<div class="post-metadata">

**Author:** ![JeremyLT](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jeremylt/32/291894_2.png) [@JeremyLT](https://forum.freecodecamp.org/u/JeremyLT)\
**Post date:** [June 21, 2022, 2:58pm UTC](https://forum.freecodecamp.org/t/is-needing-a-hint-almost-every-challenge-a-problem/520172/8 "2022-06-21T14:58:31Z")

</div>

This is a great idea. Coding starts before you touch the keyboard.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [December 21, 2022, 2:58am UTC](https://forum.freecodecamp.org/t/is-needing-a-hint-almost-every-challenge-a-problem/520172/9 "2022-12-21T02:58:47Z")

</div>

Closed on December 21, 2022, 2:58am UTC

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
