Commit Graph
350 Commits
Author SHA1 Message Date
Randell DawsonandOliver Eyton-Williams 7164d9a797 fix(guide): Added solutions and some hints and problem explanations for curriculum related Guide articles being ported over to forum (#36545)
* fix: added info and solutions for stubs

* fix: made title match main header

* fix: removed wrong closing tag

Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* fix: added closing tag

Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* fix: corrected solution

Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* fix: changed verbiage

Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* fix: added code tags

Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* fix: added solution
2019-08-01 14:16:54 +02:00
Randell Dawson 04ed29fd17 fix: replaced stub with a solution (#36533) 2019-07-30 10:21:57 +02:00
mrugesh 91df817cfe fix(guide) add stubs, update spellings and prepare for move (#36531)
* fix(guide) add stubs and correct file path misspellings and pr… (#36528)

* fix: corrected file path to match curriculum

* fix: renamed to newer challenge name

* fix: added solutions to articles from challenge files

* fix: added missing .english to file name

* fix: added missing title to guide article

* fix: correct solution for guide article

* fix: replaced stub with hint

* fix: added space in Hint headers

* fix: added solution to guide article

* fix: added solution to guide article

* test: replaced stub with hint and solution

* fix: add Problem number: to title

* fix: changed generatorexponential to correct name

* fix: renamed knight's tour to knights-tour

* fix: updated guide article
2019-07-30 00:25:58 +05:30
Jesse Rykerson 284db50f47 fix(guide): update "Search and Replace" intermediate solution (#36366)
new solution addresses the possibility of first letter of arg "before" being lower case and needing to change the first letter of "after" from capital to lowercase

solution more streamlined

added resource to help with regular expressions
2019-07-24 20:01:35 +05:30
Randell Dawson 1494a50123 fix(guide): restructure curriculum guide articles (#36501)
* fix: restructure certifications guide articles
* fix: added 3 dashes line before prob expl
* fix: added 3 dashes line before hints
* fix: added 3 dashes line before solutions
2019-07-24 13:29:27 +05:30
Ai-Lyn Tang 7f3769f8e0 Add hints for "install and set up mongoose" (#36474)
* Add hints for "install and set up mongoose"

* Add hint for how to solve the timeout error

* Add hint for what to put in the `.env` file

* Add code snippets for `.env`, `package.json` and `myApp.js`

* Restructure hints and headers

* Remove code solution from timeout hint

* Restructure headers to match the new hint template

* Move hint subject below the header

Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>

* Move hint subject below the header

Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>

* Update text in spoiler tag

Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>

* Update text in spoiler tag

Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>

* Update text in spoiler tag

Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>

* Add javascript tag to code block

Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>

* Move first line of code below ```

Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>

* Remove placeholder text

Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>

* Add json tag to code block

Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>

* Remove redundant sentence

Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>

* Format solutions section and hint

* Replace tabs with 2 space indents in `package.json`
* Remove the spoiler tags from each file name
* Remove placeholder comments in `myApp.js` to make it easier to read the code
* Update sentence in hint as two words were not displaying
2019-07-23 10:00:45 -07:00
Ai-Lyn TangandRandell Dawson 3ac898b041 Replace stub with hints and code solution (#36487)
* Replace stub with hints and code solution

* Change spoiler tag text

Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>

* Update `createAndSavePerson` to use callback

Previous solution had an empty callback

* fix: added hint header
2019-07-23 09:59:12 -07:00
Ai-Lyn Tang 03dce61f72 Replace stub for mongoDB lesson (create many records) (#36492)
* Replace stub with hints and solution

For "create many records" mongoDB lesson

* Fix markdown for inline code

Add new line to allow markdown to render inline code

* Use callback in `createAndSavePerson` function

* fix: corrected hints syntax
2019-07-23 09:58:57 -07:00
Ai-Lyn Tang 935492530a Replace stub for mongoDB lesson (use model.find) (#36491)
* Replace stub for mongoDB lesson

* Replace stub for "Use model.find to search your database"
* Include hints
* Include solution

* Use callback in `createAndSavePerson()`

* fix: corrected hints syntax
2019-07-23 09:58:42 -07:00
Ai-Lyn Tang a16cff7671 Replace stub for mongDB lesson (use model.findOne) (#36493)
* Replace stub for mongDB lesson (use model.findOne)

Add solution

* Use callback in `createAndSavePerson()`
2019-07-23 09:36:44 -07:00
Ai-Lyn Tang e2a00798f8 Add solution to hint stub (mongoDB model.findById) (#36494)
* Add solution to hint stub (mongoDB model.findById)

* Use callback in `createAndSavePerson()`
2019-07-23 09:30:07 -07:00
Oliver Eyton-WilliamsandRandell Dawson 6078081a3f feat: Add guide article and update its challenge (#36371)
* feat: Add guide article and update its challenge

* Update guide/english/certifications/javascript-algorithms-and-data-structures/basic-javascript/replace-loops-using-recursion/index.md

Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>

* Update guide/english/certifications/javascript-algorithms-and-data-structures/basic-javascript/replace-loops-using-recursion/index.md

Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>

* Update guide/english/certifications/javascript-algorithms-and-data-structures/basic-javascript/replace-loops-using-recursion/index.md

Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>

* Update guide/english/certifications/javascript-algorithms-and-data-structures/basic-javascript/replace-loops-using-recursion/index.md

Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>

* fix: Stop hints from being hidden

* fix: Improve the wording.

* Update index.md

Fixed per suggestion

* Update index.md

Fixed per suggestion
2019-07-19 16:14:28 -05:00
xJuggl3r 58e7005573 Add ES6 syntax to Challenge' solution (#36367)
* ES6 syntax

Added ES6 syntax to challenge' solution.

* Add ES6 solution to challenge

An optional way to solve the challenge using ES6 arrow functions
2019-07-19 16:03:21 -05:00
Nikolai Kiselev 7dd2fe19f3 Update a solution for "Find the Symmetric Difference" algorithm (#36379)
* Update advanced solution

* Replace HTML links with markdown syntax

* Remove obsolete sort()

* Use spread operator instead of Array.from
2019-07-18 17:07:09 -07:00
six9 f03418f7aa Update index.md (#36453) 2019-07-14 06:05:41 +01:00
Jinyoung ParkandRandell Dawson 5602111789 fix : add URL to a missing link (#36413)
* fix : add URL to a missing link

In Relevant Links (line 54), the first URL text 'Using typeof' was missing a href value. I fixed it by adding the link to a FreeCodeCamp's Javascript Debugging curriculum that introduces typeof method. (
Debugging: Use typeof to Check the Type of a Variable : https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/debugging/use-typeof-to-check-the-type-of-a-variable)

* I'm a first-time open source contributor. If you have any feedback about my pull request, feel free to share it with me.

* Update guide/english/certifications/javascript-algorithms-and-data-structures/basic-algorithm-scripting/boo-who/index.md

Remove the first bullet instead of adding the link (suggested by RandellDawson)

Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
2019-07-09 08:12:23 -07:00
Nilys f75e20a969 Delete redundant solution (#36393)
The first advanced solution is almost identical to the intermediate one. Per "similar but better" rule, I believe the first one should be kept (or at the bare minimum, they should at least fill the same category).
2019-07-07 17:05:02 -07:00
Randell Dawson 8ee2e5eaa9 fix: replace url with empty array in solution (#36380) 2019-07-06 12:35:06 +05:30
Sudipto Ghosh 29823fe495 Expanded guides for some APIs and Microservices challenges and fixed links to the source files (#36131)
* Expanded the solution for the 'Get Route Parameter Input from the Client' challenge

* Expanded the guide for the 'Use body-parser to Parse POST Requests' challenge

* Rewritten guide for the 'Serve JSON on a Specific Route' challenge and fixed source link

* Expanded the guide for the 'Serve Static Assets' challenge

* Expanded solution to the 'Get Query Parameter Input from the Client' challenge and fixed links to source file

* Added solution to the 'Chain Middleware to Create a Time Server' challenge and fixed link to source file

* Rewrite the 'Start a Working Express Server' challenge

* Expanded the guide for 'Expand Your Project with External Packages from npm'

* Added reference to semantic versioning in 'Add a Version to Your package.json'

* fix/remove-links+fix-solutions

* fix/remove-more-links
2019-07-01 20:35:15 -05:00
orangegrove1955 27ae86f0ef Updated English guide articles for all QA and Testing with Chai challenges (#35080)
* Updated guide articles for all Quality Assurance and Testing with Chai challenges to include hints and solutions

* fix: 2 space indentation and code formatting
2019-07-01 16:00:18 -05:00
Randell DawsonandTom 331cbb88f8 fix(guide): Remove repl.it links from challenge related guide articles (English) (#36204)
* fix: remove repl.it links english

* fix: add extra line

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>

* fix: add extra line

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>

* fix: add extra line

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>

* fix: add extra line

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>

* fix: add extra line

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>

* fix: add extra line

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>

* fix: add extra line

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>

* fix: add extra line

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>

* fix: add extra line

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>
2019-07-01 08:49:24 -05:00
Tiago Salema fcefb7895d Added a suggestion of solution with a simple for loop (#35884)
* Added a suggestion of solution

* fix: removed repl.it links and corrected bullets
2019-06-27 17:52:00 -07:00
João Luiz aec887be68 Update URL-Shortener-Microservice Hint Markdown (#36299)
Creating a Hinting for this project with useful tips
2019-06-27 10:42:25 -07:00
Mehul Lakhanpal 90036cc711 feat: add article for balanced-brackets (#36160)
* feat: add article for balanced-brackets

* fix: reformatted and refactored solution
2019-06-26 10:53:46 -07:00
Nicholas Win d50b4970dc Add method, solution, and reference. (#32135)
* Add method, solution, and reference.

* fix: removed stub text
2019-06-26 17:10:57 +01:00
Randell Dawson 81a0c0c8e0 fix(guide) add solutions to Factorialize a Number and Reverse and String challenges (#35967)
* fix: added iterative basic solution

* fix: added another basic solution
2019-06-25 18:34:03 -07:00
Ina S.Lew 566e112d5d Added step-by-step instructions to 'how-to-use-package.json-the-core-of-any-node.js-project-or-npm-package/index.md' (#35868)
* Added step-by-step instructions and screenshots

Added step-by-step instructions to set up an anonymous node/express project for the challenges and three demo screenshots.

* Removed screenshots from instructions

* fix: changed javascript to json

* fix: changed to two-space indentation
2019-06-25 13:15:51 -07:00
Navjot Singh f267d2a61b Fixed Broken Links in Binary Agents (#35947)
The parseInt link to the freecodecamps forum pointed to a link with no resource. And Also fixed the link for String.length and removed a dead link.
2019-06-25 12:59:15 -07:00
Randell Dawson 3f56cf6f54 fix replace code with applicable language postfix 2019-06-25 16:57:43 +08:00
Randell Dawson f57e6d69d8 fix: remove codepen.io links from challenge articles 2019-06-25 16:52:24 +08:00
Randell Dawson 3fa14df925 fix: renamed folder without starting dash (#36124) 2019-06-21 18:05:33 -04:00
Stan ChoiandRandell Dawson a13d116aab fix(learn): Added solution for invert binary tree data structures challenge (#35922)
* fix: add solution for invert binary tree

* Fixed errors

* Used 2 spaces per request

* deleted images

* Update guide/english/certifications/coding-interview-prep/data-structures/invert-a-binary-tree/index.md

Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>

* Update guide/english/certifications/coding-interview-prep/data-structures/invert-a-binary-tree/index.md

Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>

* Update guide/english/certifications/coding-interview-prep/data-structures/invert-a-binary-tree/index.md

Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>

* Update guide/english/certifications/coding-interview-prep/data-structures/invert-a-binary-tree/index.md

Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>

* fix: added extra line to avoid linting errors
2019-06-20 13:28:37 -04:00
Harkirat Singh 8f25305ab2 Update index.md (#35322)
* Update index.md

Completion of the solution code.

* fix: changed code to json
2019-06-12 17:39:51 -07:00
James Hogan dda4797118 Hints+Solution for D3 Display Shapes Challenge (#29513)
* Hints+Solution for  D3 Display Shapes Challenge

* fix: removed stub info
2019-06-11 09:48:33 -07:00
James Hogan 65bccdb9bd provide hints+solution to SVG/D3 Challenge (#29509)
* provide hints+solution to SVG/D3 Challenge

* fix: removed stub info
2019-06-11 09:48:22 -07:00
James Hogan a827e1c910 Hints+Solution - 'Create a Bar for Each Data Point in the Set' (#29527)
* Hints+Solution - 'Create a Bar for Each Data Point in the Set'

* fix: removed stub info
2019-06-11 09:48:11 -07:00
Natalie Cardot 4cebb759f2 Spelling/grammar fixes (#36164) 2019-06-08 11:18:08 +05:30
Natalie Cardot 33a61168c0 Correct word in code explanation (#36146) 2019-06-01 09:06:54 -05:00
Randell Dawson ad3d0aed04 fix: corrected guide solutions and explanations (#36125) 2019-05-29 01:34:08 +05:30
Guayo Mena f5b94b51f1 feat(curriculum): Extend solution explanation for Convert HTML Entities challenge (#35835)
* Extend solution explanation

The explanation for the advanced code solution was a little cumbersome.
It tried to explain the used method, but also tried to explain an alternative solution, both mixed together.
To fix that, I moved everything related to the alternative solution to another paragraph.
Additionally, I added a more detailed explanation about this alternative solution.
Hopefully, with this fixes, both solutions will be clearer to the user.

* Replace intermediate solution

Replace the intermediate solution with a more concise one.

I took the opportunity to eliminate the indenting in all 3 snippets to remove unnecessary blank space on the left.
I also changed the wording on one of the instructions and fixed a typo.

* Remove external links

* Simplity regex declaration

I replaced `new RegExp()` in order to make the solution cleaner and shorter

* Update index.md
2019-05-26 17:53:41 +05:30
alittlepickle c4c8de1c20 Updated from a stub to give basic info (#29726)
* Updated from a stub to give basic info

* fix: removed all of stub info
2019-05-25 21:22:43 -07:00
Vishwas Navada K 78826ea90d Fix the function call flattenArray->steamrollArray (#36128)
Replace the function call in the Intermediate Code Solution from flattenArray to steamrollArray which is the actual function name.
2019-05-25 17:49:57 -07:00
lasjorg c852dc7d1d fix(guide): correct regex for intermediate solution code (#35784) 2019-05-24 23:45:26 -07:00
Parth Parth 705c781d19 Added solution to Extend One Set of CSS Styles to Another Element (#34771)
* Update index.md

* fix: changed indentation
2019-05-24 23:36:18 -07:00
c37cb92e63 Alternative Advanced Code Solution (#35965)
* Alternative Advanced Code Solution

Uses .replace() instead of .split()-.join()

* Update guide/english/certifications/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/binary-agents/index.md

Co-Authored-By: Parth Parth <34807532+thecodingaviator@users.noreply.github.com>

* Update guide/english/certifications/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/binary-agents/index.md

Co-Authored-By: Parth Parth <34807532+thecodingaviator@users.noreply.github.com>

* Update guide/english/certifications/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/binary-agents/index.md

Co-Authored-By: Parth Parth <34807532+thecodingaviator@users.noreply.github.com>

* Update guide/english/certifications/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/binary-agents/index.md

Co-Authored-By: Parth Parth <34807532+thecodingaviator@users.noreply.github.com>

* Update guide/english/certifications/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/binary-agents/index.md

Co-Authored-By: Parth Parth <34807532+thecodingaviator@users.noreply.github.com>

* Update guide/english/certifications/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/binary-agents/index.md

Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>

* Addresses review by RandellDawson
2019-05-25 01:40:05 +05:30
Natalie Cardot 545b8a6f34 Modify if statement (#36088)
* Modify if statement

Change the solution so an empty string is returned when num is less than 1 rather than less than 0 for consistency with instructions.

* Add test 

New test checks that if num is 0, an empty string is returned

* Fix test 

Fixing errors in newly proposed test that checks that empty string is returned when num is 0

* Modify intermediate solution

Changing if statement in intermediate solution to check whether num is less than 1 rather than less than 0. (Also adding curly brackets to that solutions if/else statements.)

* fix: removed unnecessary assert message arguments
2019-05-20 21:08:20 -04:00
Matt Schlosser c201e41564 typo: Remove errors within a challenge solution (#36097)
* Remove random links from code

Seems that these got added by accident.

* Remove errors from solution in Portuguese version

* Remove errors from solution in Spanish version

* Remove errors from solution in Russian version

* Remove errors from solution in Arabic version

* Remove errors from solution in Chinese version
2019-05-20 12:48:28 -07:00
Ahmad Abdolsaheb a16539becf fix: replace imgur with s3 for english guide without conflict (#36053)
* fix: imgur to s3 for englsh guide without conflict

(cherry picked from commit 9c9f15abf4e755feab79ef7090dacdcf497ea7b6)

* fix: revert unrelated changes
2019-05-20 23:54:51 +05:30
Rajat Verma 53fd5d8c14 solution logic fixed for negative numbers (#36093) 2019-05-20 08:31:10 -07:00
Gerard HynesandRandell Dawson a30982e862 Add comments and update callback arguments' names (#36082)
* Add comments and update callback arguments' names

I've added a few comments to the solution and given the callback arguments more descriptive names to clarify what the solution is doing, since this challenge seemed a little more complex than the previous challenges.

* Update guide/english/certifications/javascript-algorithms-and-data-structures/functional-programming/use-the-reduce-method-to-analyze-data/index.md

That makes absolute sense and is clearer. Thank you.

Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>

* Update indentation to be two-spaced
2019-05-19 10:45:34 -07:00