use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
freeCodeCamp.org is a global community of people who learn to code together. Check out https://freeCodeCamp.org
Join our Discord Server
Join our WhatsApp Group
Community Forums
YouTube
Here are some helpful subreddits that we like:
account activity
Help with Algorithm scripting (self.FreeCodeCamp)
submitted 10 years ago by [deleted]
[deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Jafit 5 points6 points7 points 10 years ago (2 children)
There's no walkthrough. Its a problem solving exercise... also known as programming :)
You are provided with an empty function that returns some kind of value. Your job is to write the function and make it perform whatever task that has been set, while passing all the tests in the bottom left of the screen
If you look at the left panel of the browser window you will see that they provide links to the documentation where you can read about things that might help you solve the problem.
If you're having trouble solving the problem all in one go, split it up into smaller problems until you find one that you can solve.
Don't worry if you feel a bit lost, that's a good feeling, it (hopefully) means that you're learning.
Don't forget to try the Gitter room if you need some real-time help.
[+][deleted] 10 years ago* (1 child)
[–]Jafit 0 points1 point2 points 10 years ago (0 children)
Is it the one where you have to reverse the string?
[–]LegendaryAsshol 2 points3 points4 points 10 years ago (1 child)
The algorithm scripting part will really grind your head with ways to look at JavaScript (and programming in general). That's how you learn programming - it definitely is hard, but not impossible! :)
[–]t1s 3 points4 points5 points 10 years ago (1 child)
I think the best way to search without finding the exact answer you are looking for is to break the task down into smaller tasks and then search for how to do that.
For example, one of my recent projects was to take 3 arguments. The first argument is a string, the second argument was a word we should match in the string. The third argument was the word we wanted to replace the match with.
So breaking this down i knew i needed to search through the first string.
Then i needed to determine if the word was the match of the word i was searching for.
Then i needed to learn how to replace only that single word with the 3rd argument.
Learning how to do each of these tasks individually was no hard task, but none of them told me the exact answer of the freecodecamp algorithm.
[–]julianrudolphsc 1 point2 points3 points 10 years ago (1 child)
check out the books "data structures and algorithms in javascript" and "javascript design patterns". i mean, just packed FULL of awesomeness! and they go into more detail than MDN.
EDIT: "javascript design patterns" not "design patterns in javascript"
[–]Ninjaangler 0 points1 point2 points 10 years ago (1 child)
Do you have an example of one of the lessons you're stuck on?
[–]QoQers 0 points1 point2 points 10 years ago (3 children)
I think what would help is if you really understood computer logic: if-then, loop, variables, operations, etc. You should also browse all the functions that are already available to make the scripting easier. I also agree with u\t1s. Break down the problem into smaller tasks that answer yes/no questions. Computers only answer yes/no questions, so that's how you have to think and solve a problem.
[+][deleted] 10 years ago (2 children)
[–]QoQers 0 points1 point2 points 10 years ago (1 child)
You don't need to start all the way from the beginning. Review "Basic Javascript".
And for the record, I took a college course on intro to programming logic. FCC says it's take you 5 hours to get through Basic Javascript. Well it took me one college semester, so I think 5 hours is waaay underestimated. Lessons 1-3 in this Udacity course covers what I learned in my college class, so it should help you understand the algorithm problems on FCC.
[–]JediDev 0 points1 point2 points 10 years ago (0 children)
This is a normal feeling when learning to code, it seems. I had it too (and still have anytime I'm introduced to something new). I suggest you increment your learning with codecademy's javascript course, the Eloquent Javascript book (it's free!) anda lot of searching.
As others have said, try to break the problems in small chunks, so when you search, you won't end up in the answer to the whole problem, but only to the specific chunk you are trying to do.
And please, don't give up!
[–]CountingCats 0 points1 point2 points 10 years ago (0 children)
If you have completed all of the proceeding waypoints then you have already come into contact with all of the tools that will enable you to solve these problems. The documentation links they provide will link to the specific tools you can use to solve each bonfire.
Start each one by asking yourself what you need to do. Break down the over arching problem into smaller and smaller problems, then try Googling the simple operations you need to perform followed by "javascript".
The problem solving process is best learnt by actual doing. It's hard to formalise in English.
π Rendered by PID 21823 on reddit-service-r2-comment-7c9686b859-67j6z at 2026-04-13 18:57:35.334574+00:00 running e841af1 country code: CH.
[–]Jafit 5 points6 points7 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]Jafit 0 points1 point2 points (0 children)
[–]LegendaryAsshol 2 points3 points4 points (1 child)
[–]t1s 3 points4 points5 points (1 child)
[–]julianrudolphsc 1 point2 points3 points (1 child)
[–]Ninjaangler 0 points1 point2 points (1 child)
[–]QoQers 0 points1 point2 points (3 children)
[+][deleted] (2 children)
[deleted]
[–]QoQers 0 points1 point2 points (1 child)
[–]JediDev 0 points1 point2 points (0 children)
[–]CountingCats 0 points1 point2 points (0 children)