# Algorithmic trouble

**URL:** <https://forum.freecodecamp.org/t/algorithmic-trouble/34007>\
**Category:** General\
**Created:** [September 4, 2016, 7:24pm UTC](https://forum.freecodecamp.org/t/algorithmic-trouble/34007 "2016-09-04T19:24:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhics21](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/abhics21/32/15891_2.png) [@abhics21](https://forum.freecodecamp.org/u/abhics21)\
**Post date:** [September 4, 2016, 7:24pm UTC](https://forum.freecodecamp.org/t/algorithmic-trouble/34007/1 "2016-09-04T19:24:40Z")

</div>

I am having a lot of trouble solving algorithms and also i am writing sloppy and bad code,Also they are taking days to solve and still gives most inefficient solutions.what am i doing wrong and what should i do?  
I am in intermediate algorithms section.

---

<div class="post-metadata">

**Author:** ![JacksonBates](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jacksonbates/32/123402_2.png) [@JacksonBates](https://forum.freecodecamp.org/u/JacksonBates)\
**Post date:** [September 4, 2016, 9:04pm UTC](https://forum.freecodecamp.org/t/algorithmic-trouble/34007/2 "2016-09-04T21:04:33Z")

</div>

It sounds to me like you are doing absolutely nothing wrong! The intermediate algorithms are hard!

Here’s some previous discussion about them; you are definitely not alone:

> **[Intermediate algorithms is too hard](https://forum.freecodecamp.org/t/intermediate-algorithms-is-too-hard/29470/)**
>
> Hello, I have completed Javascript and Basic algorithms in just few days, bet then i came to the Intermediate algorithms. I have completed the first one, but other ones are just too hard. I don’t want to read example code because in that way i...

> **[Is it worth spending a whole day on one algorithm?](https://forum.freecodecamp.org/t/is-it-worth-spending-a-whole-day-on-one-algorithm/23251/)**
>
> Hello Guys… I am currently a final year Engineering student(CS). Frankly this is the first time i have taken programming seriously. I am on the path to earn Front-end certificate. I spend my whole day solving a single algorithm Because of this i...

---

<div class="post-metadata">

**Author:** ![sceadgugenga](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/sceadgugenga/32/14236_2.png) [@sceadgugenga](https://forum.freecodecamp.org/u/sceadgugenga)\
**Post date:** [September 5, 2016, 12:50am UTC](https://forum.freecodecamp.org/t/algorithmic-trouble/34007/3 "2016-09-05T00:50:33Z")

</div>

I have to agree with @JacksonBates – the intermediate algorithms are hard. The advanced ones are of course even more difficult. In fact, I had four or five of the advanced algorithms that I got stuck on. It took me weeks to figure them out. I eventually skipped ahead to working on the projects and then revisited them. Even still, there is one that I have yet to figure out.

When I got stuck on an intermediate algorithm, I skipped to the next in the list and tried to work on that. Sometimes, I just had to walk away for a while and come back with fresh eyes.

I think the point of these exercises is to stretch the way we think. That means that at times we are going to be stumped for a while.

From what I have heard from others, your experience is absolutely normal, and you are doing things right.

Happy Coding!

---

<div class="post-metadata">

**Author:** ![jwilkins.oboe](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jwilkins.oboe/32/179497_2.png) [@jwilkins.oboe](https://forum.freecodecamp.org/u/jwilkins.oboe)\
**Post date:** [January 16, 2021, 5:29am UTC](https://forum.freecodecamp.org/t/algorithmic-trouble/34007/4 "2021-01-16T05:29:25Z")

</div>

Closed on January 16, 2021, 5:29am UTC


