* 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
* 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
* 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
* fix: imgur to s3 for englsh guide without conflict
(cherry picked from commit 9c9f15abf4e755feab79ef7090dacdcf497ea7b6)
* fix: revert unrelated changes
* 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
* fix: replace sh with shell
fix replace terminal with shell
fix replace node with js
fix replace output with shell
fix replace cs with csharp
fix replace c++ with cpp
fix replace c# with csharp
fix replace javasctipt with js
fix replace syntax with js
fix replace unix with shell
fix replace linux with shell
fix replace java 8 with java
fix replace swift4 with swift
fix replace react.js with jsx
fix replace javascriot with js
fix replace javacsript with js
fix replace c++ - with cpp
fix: corrected various typos
fix: replace Algorithm with nothing
fix: replace xaml with xml
fix: replace solidity with nothing
fix: replace c++ with cpp
fix: replace txt with shell
fix: replace code with json and css
fix: replace console with shell
We added the correct solution to the guide article related to this code challenge, and deleted the other information which is not related to the code challenge at all.
* A clearer, more readable return statement
Use .filter() to get the odd values in array.
Use .reduce() to sum.
Two separate tasks, one line, easier to read and understand.
Updated comments and Code Explanation accordingly.
* Propose a Basic Solution to Adjaceny List Problem
* Update guide/english/certifications/coding-interview-prep/data-structures/adjacency-list/index.md
Co-Authored-By: StanimalTheMan <43020892+StanimalTheMan@users.noreply.github.com>
* Remove template