# Intermediate Algorithm Scripting Struggles

**URL:** <https://forum.freecodecamp.org/t/intermediate-algorithm-scripting-struggles/11086>\
**Category:** General\
**Created:** [June 15, 2016, 3:24am UTC](https://forum.freecodecamp.org/t/intermediate-algorithm-scripting-struggles/11086 "2016-06-15T03:24:15Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniemeijer](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/daniemeijer/32/121880_2.png) [@daniemeijer](https://forum.freecodecamp.org/u/daniemeijer)\
**Post date:** [June 15, 2016, 3:24am UTC](https://forum.freecodecamp.org/t/intermediate-algorithm-scripting-struggles/11086/1 "2016-06-15T03:24:15Z")

</div>

HI everyone,

I recently started on the Intermediate Algorithm Scripting Bonfires and, man it is tough.

The first 288 FCC exercises have been pretty do-able, and a lot of fun to work on. But as of the Intermediate Algorithms it there seems to be a major increase in the difficulty of the bonfires. Honestly it is pretty demotivating. It looks like I have missed something along the line. I have tried to be more immersive by reading several JS books, which hasn’t resulted in the expected result.

I would like to know if anybody else has experienced the same thing? How did you get through this?  
Any tips, tricks, suggestions and experiences are welcome. I want to keep going, but without any progress it is pretty demotivating.

Please share.

Thanks a lot,  
Dennis

---

<div class="post-metadata">

**Author:** ![PortableStick](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/portablestick/32/65591_2.png) [@PortableStick](https://forum.freecodecamp.org/u/PortableStick)\
**Post date:** [June 15, 2016, 3:42am UTC](https://forum.freecodecamp.org/t/intermediate-algorithm-scripting-struggles/11086/2 "2016-06-15T03:42:06Z")

</div>

You haven’t missed anything. This is exactly how it’s supposed to go. Feeling demotivated, useless, and depressed is a normal part of the process. Some times you don’t feel like you’re making any progress or like you’re going to fail, but you just push through and then one day, you wake up and you’re much more capable than you used to be. But you’ll never be as good as you want to be.

It’s like everything else in life. One step at a time, forever more until the end of time.

---

<div class="post-metadata">

**Author:** ![jinrawx](https://avatars.discourse-cdn.com/v4/letter/j/ecc23a/32.png) [@jinrawx](https://forum.freecodecamp.org/u/jinrawx)\
**Post date:** [June 15, 2016, 3:53am UTC](https://forum.freecodecamp.org/t/intermediate-algorithm-scripting-struggles/11086/4 "2016-06-15T03:53:04Z")

</div>

I’d recommend taking a break off of the books and simply focusing on solving the algorithms. It should be difficult, as it requires quite a bit of deep focus. When you can’t figure the problem out after trying, you can try googling/looking up documentation/referring to your books(just for method ideas). If you still can’t figure out the issue, you can always ask the FCC chat room / forums for help.

I know the struggle too. It’s tough, but if you keep on grinding, you’ll eventually succeed and crush those problems! 😸

---

<div class="post-metadata">

**Author:** ![andreibuiza](https://avatars.discourse-cdn.com/v4/letter/a/e19b73/32.png) [@andreibuiza](https://forum.freecodecamp.org/u/andreibuiza)\
**Post date:** [June 15, 2016, 4:21am UTC](https://forum.freecodecamp.org/t/intermediate-algorithm-scripting-struggles/11086/5 "2016-06-15T04:21:54Z")

</div>

Don’t be afraid to visualize the problems! Often I use pen and paper to understand and break down the problem. I think one of the major downfalls of programmers are going straight into coding right after reading a problem.

Try, pausing, relaxing, talking to yourself, writing pseudocode, drawing on paper.

---

<div class="post-metadata">

**Author:** ![rug3y](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/rug3y/32/64395_2.png) [@rug3y](https://forum.freecodecamp.org/u/rug3y)\
**Post date:** [June 15, 2016, 4:57am UTC](https://forum.freecodecamp.org/t/intermediate-algorithm-scripting-struggles/11086/6 "2016-06-15T04:57:06Z")

</div>

I’ve had some serious difficulty with the intermediate challenges. Here are some tactics that have helped me:

- If the problem feels really tough, I’ll work it out with pen and paper first. This helps me plan out complex problems and break them down into manageable chunks.
- The MDN documentation is really useful for these challenges. To solve them, you’re going to be using a lot of built in javascript methods for strings/objects/types/arrays etc. You can get a lot of mileage out of being familiar with the most common of these built in methods.
- If I’ve been struggling with a particular problem, sometimes I’ll stop, and sleep on it, or skip it altogether and come back to it in the future. I just came back to a problem today after a week or two, and the solution was immediately apparent. Sometimes your brain just needs to “defrag” before it can come up with a solution - especially if you’re tired.

I hope this helps.

---

<div class="post-metadata">

**Author:** ![tinyinkling](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/tinyinkling/32/2939_2.png) [@tinyinkling](https://forum.freecodecamp.org/u/tinyinkling)\
**Post date:** [June 16, 2016, 2:36am UTC](https://forum.freecodecamp.org/t/intermediate-algorithm-scripting-struggles/11086/7 "2016-06-16T02:36:35Z")

</div>

Thanks for sharing the HackerRank link - I’d never heard of it before and I can already see that it’s going to be super useful!!

---

<div class="post-metadata">

**Author:** ![joechan3](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/joechan3/32/1571_2.png) [@joechan3](https://forum.freecodecamp.org/u/joechan3)\
**Post date:** [June 16, 2016, 2:41am UTC](https://forum.freecodecamp.org/t/intermediate-algorithm-scripting-struggles/11086/8 "2016-06-16T02:41:34Z")

</div>

You are not alone! 🙂

As other have already said, pen and paper are very effective tools in tackling the intermediate and advanced challenges.

---

<div class="post-metadata">

**Author:** ![tinyinkling](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/tinyinkling/32/2939_2.png) [@tinyinkling](https://forum.freecodecamp.org/u/tinyinkling)\
**Post date:** [June 16, 2016, 6:12pm UTC](https://forum.freecodecamp.org/t/intermediate-algorithm-scripting-struggles/11086/10 "2016-06-16T18:12:22Z")

</div>

Thank you SO much for all of this info. It’s algorithms & data analysis that I am especially interested in & have been working towards learning (and one day mastering!) - so - thanks again! 👓

---

<div class="post-metadata">

**Author:** ![arowberry](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/arowberry/32/165930_2.png) [@arowberry](https://forum.freecodecamp.org/u/arowberry)\
**Post date:** [June 17, 2016, 11:37pm UTC](https://forum.freecodecamp.org/t/intermediate-algorithm-scripting-struggles/11086/11 "2016-06-17T23:37:40Z")

</div>

gaahhhh! If you are having a problem getting the simple core client javascript here on FCC, then you will want to stick a gun in your mouth at HackerRank. They use server-side node.js javascript that will not look on vaguely familiar, you can’t copy and paste the problems into your own editor and the tutorials are nearly useless because they are for Java coders. If you can make it through the HackerRank then you dang well deserve a job somewhere.

---

<div class="post-metadata">

**Author:** ![GitCoderr](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/gitcoderr/32/4372_2.png) [@GitCoderr](https://forum.freecodecamp.org/u/GitCoderr)\
**Post date:** [June 18, 2016, 2:07am UTC](https://forum.freecodecamp.org/t/intermediate-algorithm-scripting-struggles/11086/12 "2016-06-18T02:07:04Z")

</div>

LOL. True! I heard about HackerRank and checked it out, became depressed, closed it. I mean, what the hell is all this???

```
process.stdin.resume();
process.stdin.setEncoding('ascii');

var input_stdin = "";
var input_stdin_array = "";
var input_currentline = 0;

process.stdin.on('data', function (data) {
    input_stdin += data;
});

process.stdin.on('end', function () {
    input_stdin_array = input_stdin.split("\n");
    main();    
});

function readLine() {
    return input_stdin_array[input_currentline++];
}

```

And this is level 1 EASY! I understand quite a lot of JS but when I saw this I felt like my brain was melting. Perfect example, (once again), of the coding community having now idea how to introduce new things to someone learning. You don’t give a challenge that requires you to solve an algorithm as simple as, LITERALLY, “return a + b”, and then throw a wall of confusion code at them like this and tell them:

> Welcome to HackerRank! The purpose of this challenge is to familiarize you with reading input from stdin (the standard input stream) and writing output to stdout (the standard output stream) using our environment.

> Review the code provided in the editor below, then complete the solveMeFirst function so that it returns the sum of two integers read from stdin. Take some time to understand this code so you’re prepared to write it yourself in future challenges.

But I’m not surprised anymore. I actually think that professionals in any industry WANT to make the simple more complicated than it needs to be and WANT to confuse most people to create an artificial barrier to entry. Less competition. It sounds silly but I don’t have a better explanation.

I like CodeFights and CodeWars the best. Maybe when I get better I’ll go back to HackerRank. Maybe not. I’m pissed off that they call something like that “easy”. LOL

---

<div class="post-metadata">

**Author:** ![RedMint](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/redmint/32/165925_2.png) [@RedMint](https://forum.freecodecamp.org/u/RedMint)\
**Post date:** [June 18, 2016, 3:31am UTC](https://forum.freecodecamp.org/t/intermediate-algorithm-scripting-struggles/11086/13 "2016-06-18T03:31:42Z")

</div>

You and Arowberry really had me laughing. I gave HackerRank a try. I woke up 3 days later, buried under a mountain of nodeJS documentation, attempting to understand the **EASY** HackerRank JS code challenges; after running down several coding rabbit trails, driven ever onward by my little girl need to compete with the guys, until at last I lay panting like an old dog under a hot summer sun.

My advice is to stay on point with FCC. The hardest part of learning JS seems to be adventuring off onto too many interesting looking rabbit trails until it all seems just too much. Thanks FCC for providing me a doable structure to follow!

---

<div class="post-metadata">

**Author:** ![jake-wies](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jake-wies/32/857_2.png) [@jake-wies](https://forum.freecodecamp.org/u/jake-wies)\
**Post date:** [June 19, 2016, 12:43am UTC](https://forum.freecodecamp.org/t/intermediate-algorithm-scripting-struggles/11086/15 "2016-06-19T00:43:13Z")

</div>

The best way IMHO to tackle algorithms as a new programmer is to take a step back from the problem itself, grab a pen/pencil/marker, and define on a piece of paper the problem and how you are going to derive the answer. Don’t look at the challenge as 1 problem, look at it as a a group of tiny problems. Breaking the challenge up into tiny problems helps you to think a little clearer. Every algorithm is just a list of steps, each step being the answer to a tiny problem.

---

<div class="post-metadata">

**Author:** ![DevMaterial](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/devmaterial/32/161286_2.png) [@DevMaterial](https://forum.freecodecamp.org/u/DevMaterial)\
**Post date:** [June 19, 2016, 1:16am UTC](https://forum.freecodecamp.org/t/intermediate-algorithm-scripting-struggles/11086/16 "2016-06-19T01:16:15Z")

</div>

tbh, we should have hint system so we wouldn’t be urged to go out and look for documentation/answer.

A system where you get the option to take up to 3 slight hints would be very nice.

---

<div class="post-metadata">

**Author:** ![lincore](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/lincore/32/101809_2.png) [@lincore](https://forum.freecodecamp.org/u/lincore)\
**Post date:** [June 19, 2016, 9:54am UTC](https://forum.freecodecamp.org/t/intermediate-algorithm-scripting-struggles/11086/17 "2016-06-19T09:54:51Z")

</div>

@DevMaterial  
Something like that already exists: [https://github.com/FreeCodeCamp/freecodecamp/wiki/Map](https://github.com/FreeCodeCamp/freecodecamp/wiki/Map)  
I like to check it out after completing a challenge to measure my current density 🙂

---

<div class="post-metadata">

**Author:** ![GitCoderr](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/gitcoderr/32/4372_2.png) [@GitCoderr](https://forum.freecodecamp.org/u/GitCoderr)\
**Post date:** [June 20, 2016, 7:46pm UTC](https://forum.freecodecamp.org/t/intermediate-algorithm-scripting-struggles/11086/18 "2016-06-20T19:46:06Z")

</div>

> [@P1xt](#):
>
> > [@GitCoderr](#):
> >
> > process.stdin.resume();  
> > process.stdin.setEncoding(‘ascii’);
> > 
> > var input\_stdin = “”;  
> > var input\_stdin\_array = “”;  
> > var input\_currentline = 0;
> > 
> > process.stdin.on(‘data’, function (data) {  
> > input\_stdin += data;  
> > });
> > 
> > process.stdin.on(‘end’, function () {  
> > input\_stdin\_array = input\_stdin.split(“\n”);  
> > main();  
> > });
> > 
> > function readLine() {  
> > return input\_stdin\_array[input\_currentline++];  
> > }
> 
> “All this” is the code necessary to read data from standard input. place it in an array, and then iteratively retrieve one line at a time from the array so you can process each line one at a time by simply calling readLine() … and, the links to the two beginner JavaScript contests I provided don’t actually expect you to be able to code, or even understand that.
> 
> Typically, there will be a comment along the lines of:
> 
> ```auto
> #put your code here
> 
> ```
> 
> Which, I would expect to be understandable by most.
> 
> The two HackerRank links I offered up in this thread weren’t actually “typical” toss you to the wolves algorithm challenges on HackerRank, they started with flat out basic JavaScript challenges, with a tutorial at the beginning of each lesson and the first lesson was as simple as looking for the “put your code here” comment and adding “Console.log(‘Hello World’);” there.
> 
> Not all of HackerRank is unapproachable and I wouldn’t have linked in their general consumption algorithm or data structures fare - that’d be a damn cruel thing to do to someone already feeling overwhelmed by the (relative to the general HackerRank challenges) far simpler challenges on FCC.
> 
> @RedMint - I’m not really sure the competitions on HackerRank have anything to do with gender. I’ve never found being female to be an asset or a hinderance there 😉

You used variations on the word “simple” three times. Quincy might have an opinion on that. LOL

---

<div class="post-metadata">

**Author:** ![apugoneappu](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/apugoneappu/32/91777_2.png) [@apugoneappu](https://forum.freecodecamp.org/u/apugoneappu)\
**Post date:** [June 21, 2016, 5:27pm UTC](https://forum.freecodecamp.org/t/intermediate-algorithm-scripting-struggles/11086/20 "2016-06-21T17:27:29Z")

</div>

I also recently completed my JSON APIs and AJAX session and found it to be too non-educative (for lack of a better word). All I literally did in the last 5 challenges was copy the given code and paste it into the editor. It almost felt like FCC was rushing to the Intermediate Front End Development Projects.

So a frantic search began, to find what I’d missed. But to learn what I’d missed, I had to know what I had actually missed.

The quickest option was to chat with experienced developers in the, well, chat. This is the best comment I had there:

> Yes, I feel that that section needs some love.

But all this did was to comfort me. This consoled me that I wasn’t the only one having this problem. But, this did not solve my problem. It hadn’t even started even solving my problem.

So the quest continued, I even posted this as a question on Quora, but no answer to my avail:  
[Why is the FreeCodeCamp curriculum for JSON APIs and AJAX so non educative. All it asks to do is paste the given code into the editor?](https://www.quora.com/unanswered/Why-is-the-FreeCodeCamp-curriculum-for-JSON-APIs-and-AJAX-so-non-educative-All-it-asks-to-do-is-paste-the-given-code-into-the-editor-See-details)

So, an angry me sent a direct message to Quincy Larson on Quora. In case you’re wondering who he is, he is the founder of FreeCodeCamp. Still no reply.

To my rescue came Google, but as I said, to find the answer, I needed to know what I had to search. What should be the magic keyword?

After days of struggling, I finally found that what I need to learn was not APIs (although it requires APIs) but AJAX, which is pretty easy.

So, now that I knew what I had to learn, I needed a source to teach me AJAX as well as FreeCodeCamp teaches HTML, CSS and Javascript. With FCC, I had developed a bad habit of wanting a single source that when used, would render the need to consult other resources useless. Now I needed a similar course for AJAX.

After days of searching, Udacity was the angel from heaven.  
Here’s the link and don’t forget to thank me later.  
[The ultimate source to learn AJAX.](https://classroom.udacity.com/courses/ud110/lessons/3174548544/concepts/31591285700923)

---

<div class="post-metadata">

**Author:** ![4mifix](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/4mifix/32/3657_2.png) [@4mifix](https://forum.freecodecamp.org/u/4mifix)\
**Post date:** [June 23, 2016, 6:16pm UTC](https://forum.freecodecamp.org/t/intermediate-algorithm-scripting-struggles/11086/21 "2016-06-23T18:16:46Z")

</div>

Keep at it. I have taken some time to learn how GitHub and Git works and have been away for a while also doing some reading on algorithm scripting. Now back to JS in FCC.

---

<div class="post-metadata">

**Author:** ![vperr007](https://avatars.discourse-cdn.com/v4/letter/v/e0b2c6/32.png) [@vperr007](https://forum.freecodecamp.org/u/vperr007)\
**Post date:** [June 26, 2016, 1:08am UTC](https://forum.freecodecamp.org/t/intermediate-algorithm-scripting-struggles/11086/22 "2016-06-26T01:08:48Z")

</div>

YOU ARE A LIFE SAVER!! I’m going through the project now and I haven’t learned anything from at section. Then I tried google and it took me even deeper down the rabbit hole. Thank you again

---

<div class="post-metadata">

**Author:** ![jaytsecan](https://avatars.discourse-cdn.com/v4/letter/j/13edae/32.png) [@jaytsecan](https://forum.freecodecamp.org/u/jaytsecan)\
**Post date:** [June 26, 2016, 2:01am UTC](https://forum.freecodecamp.org/t/intermediate-algorithm-scripting-struggles/11086/23 "2016-06-26T02:01:07Z")

</div>

I’m glad to know that I’m **not the only one** who finds these “Intermediate Algorithm Scripting Problems” challenging. I found it quite a jump from the previous exercises.

I have a question. **Are these the kinds of questions they ask in coding interviews where they expect you to solve it in, like, under 30 minutes?** If so, I’m in trouble. I’m taking anywhere from an hour to 3 per problem, and I haven’t even solved that many yet.

---

<div class="post-metadata">

**Author:** ![apugoneappu](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/apugoneappu/32/91777_2.png) [@apugoneappu](https://forum.freecodecamp.org/u/apugoneappu)\
**Post date:** [June 26, 2016, 5:08pm UTC](https://forum.freecodecamp.org/t/intermediate-algorithm-scripting-struggles/11086/24 "2016-06-26T17:08:08Z")

</div>

Glad that posting out my struggle helped somebody. Do tell me whether you found the provided link useful!  
Also, sorry for posting such a long dramatic post, it’s a habit.

[Next page](https://forum.freecodecamp.org/t/intermediate-algorithm-scripting-struggles/11086.md?page=2)
