Commit Graph

305 Commits (f1ef01b1657df520fc6ab8d30350f7c5aad5ee3b)

Author SHA1 Message Date
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 Hynes 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
Dipto Karmakar 3dc8f10ae8 Update add-inline-style-in-react (#35739)
- Add my solution in the hint.
2019-05-18 23:02:46 -05:00
Tom 21118bc26a fix/regex-lower-number-of-matches (#36004)
* fix/regex-lower-number-of-matches

* fix/update-guide

* fix/convert-blockquote-to-backticks
2019-05-17 23:53:00 +01:00
The Coding Aviator 39a9da5c1d Added solution to D3 predefined scale challenge (#34242)
* Update index.md

* Update index.md

* spacing

* Update index.md
2019-05-16 09:04:54 -07:00
The Coding Aviator e6fef5ff34 Added solution to D3 use dynamic scales challenge (#34241)
* Update index.md

* Update index.md

* Update spacing

* Update index.md
2019-05-16 09:04:08 -07:00
Andrew Ma 1d77711431 add solution to redux remove item from array (#35593) 2019-05-16 13:01:37 +05:30
Randell Dawson 0a1eeea424 fix(guide) Replace invalid prism code block names (#35961)
* 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
2019-05-15 19:08:19 +02:00
Randell Dawson 4b4762716c fix(curriculum): Rewrote the Write Higher-Order Arrow Functions challenge and moved to Functional Programming section (#35954)
* fix: reworded and moved challenge

* fix: removed extra line

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

* fix; removed extra line

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

* fix: reworded sentence

Co-Authored-By: RandellDawson <5313213+RandellDawson@users.noreply.github.com>
2019-05-15 11:12:17 -05:00
The Coding Aviator d390b40a9f Update index.md (#34282) 2019-05-15 01:16:58 -07:00
Randell Dawson b013f2ab3a fix: declared x variable (#36046) 2019-05-15 11:49:44 +05:30
Randell Dawson d3c8eacef2 Hints & Solution for React and Redux (#35946) 2019-05-09 18:57:06 +05:30
Randell Dawson 1b07106f8e fix: removed guide articles no longer needed (#35679) 2019-05-08 21:26:48 -05:00
Deanna Tran 338d7ee8a7 Change "rest operator" to say "rest parameter" in challenges and guide (#35496)
* change es6 challenges rest operator to param

* fix rest parameter typos

* change rest operator to parameter in guide

* fix casing

* change rest operator to rest parameter in guide

* change rest operator to rest parameter in curriculum

* remove extra whitespace

* remove whitespaces

* remove whitespace

* fix: removed arabic file

* fix: removed chinese file
2019-05-08 16:30:24 +02:00
Tom 3cecf26f44 update restrict possible usernames solution (#35973) 2019-05-05 13:37:03 -07:00
Randell Dawson cc6f234228 [Fix] correct Guide article example for Iterate Through the Keys of an Object with a for...in Statement (#35197)
* fix: added dot btwn [user] and online

* fix: corrected example for other languages
2019-05-05 13:26:22 -05:00
Andrew Ma 586730b69a better solution to redux spread operator (#35592)
2 step -> 1 step
2019-05-05 12:40:32 -05:00
lasjorg 7573252fa0 feat(guide): add guide for HTML value attribute challenge (#35783) 2019-05-03 10:16:50 -05:00
Navjot Singh b9fdbffa71 Broken Links in Sum of all odd Fibbonaci Nos Guide (#35911)
Fixed a broken and a missing link in the guide.
2019-05-03 14:21:09 +05:30
Randell Dawson 88e7c2d704 fix: added better hint and solution (#35746) 2019-05-01 18:09:45 -04:00
Daniella Todd 36a4df9afa Updated solution-Include intro (#34199) (#34486)
Added intro paragraph and further hints.
2019-05-01 12:48:31 +02:00
Garret Kemp 0ba2b1b09c Solution and hint added to challenge (#35762) 2019-04-30 09:14:23 -07:00
chaomt fbe8dcdf6b fix(guide): binary search tree min/max height (#35938)
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.
2019-04-30 13:16:17 +05:30
Peter Kay a1e33ebf81 update regex resource link (#35901) 2019-04-24 07:19:44 -07:00
Cezary Waś 65a92f7ef9 Defining variables (#35891)
biString, uniString and i should be defined.
2019-04-22 11:25:30 +05:30
StanimalTheMan 01b61eb831 fix: update grammar & spelling react (#35882) 2019-04-20 08:55:03 -07:00
Ian Korpi edc9d0f134 Expand Certifications/Information Security and Quality Assurance article stub (#27397)
* Expand InfoSec & QA article

Expand the Information Security & Quality Assurance root article.

* Fixing capitalization in InfoSec title.
2019-04-17 16:59:21 +05:30
sidiousvic 7f845c1d2f [NEW] A clearer, more readable return statement (#35565)
* 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.
2019-04-12 14:29:47 +02:00
asims2404 c7aba9e970 Removed image (#35806) 2019-04-09 15:41:23 -07:00
asims2404 83c9258bed Update index.md (#35805)
The advanced solution does not meet problem criteria.
"The built-in repeat()-method should not be used"
2019-04-09 15:39:45 -07:00
David 685dbbde7f Updated problem example to a working implementation matching the solution style (#35062) 2019-04-02 17:47:17 -07:00
Renato Francia Castillo ce02e2746c Fixed grammar in article chain-search-query-helpers-to-narrow-search-… (#35521)
* Fixed grammar in article chain-search-query-helpers-to-narrow-search-results

* Remove guide template
2019-04-02 22:46:50 +05:30
StanimalTheMan 781c217001 Propose a Basic Solution to Adjacency List Problem (#35511)
* 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
2019-04-02 22:45:01 +05:30
Oliver Eyton-Williams 73277d8ba8 fix: Restore missing emojis and fix broken links (#35703)
* fix: Restore missing emojis and fix broken links

* fix: Remove emojis to conform with style guide

* fix: Remove the last emoticons
2019-03-29 12:52:56 -07:00
Andrew Ma 7a37788ea1 add beginner solution to pig latin (#35572) 2019-03-29 22:48:54 +05:30
Adrian Skar 08bdc8640e fix(guide): ES6 destructuring assignment with the rest operator (#35681)
* fix(guide): ES6 destructuring assignment with the rest operator

Minor fixes/enhancements.

* Update guide/english/certifications/javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-with-the-rest-operator-to-reassign-array-elements/index.md

Co-Authored-By: AdrianSkar <adrian@adrianskar.com>

* Update guide/english/certifications/javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-with-the-rest-operator-to-reassign-array-elements/index.md

Co-Authored-By: AdrianSkar <adrian@adrianskar.com>

* Update guide/english/certifications/javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-with-the-rest-operator-to-reassign-array-elements/index.md

Co-Authored-By: AdrianSkar <adrian@adrianskar.com>

* Fixes for solutions 

Copy/paste friendly code as discussed.

* Update guide/english/certifications/javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-with-the-rest-operator-to-reassign-array-elements/index.md

Co-Authored-By: AdrianSkar <adrian@adrianskar.com>
2019-03-29 09:40:13 -07:00
Amy Lam 914a7c522d Copy edits (#35536)
* Copy edits to Basic JavaScript section

* Copy edits to ES6 section

* Update index.md
2019-03-29 22:06:58 +05:30
Andrew Ma 768b618e68 add solution to Redux never mutate state (#35590) 2019-03-29 08:52:12 -07:00
Ina S.Lew 25c906d389 Commented solution using switch statement (#35623)
* Commented solution using switch statement

* fix: used two-space indentation
2019-03-29 08:33:47 -07:00
Ina S.Lew 2565d4c44a Commented full solution (#35620)
* Include a default case for messageReducer

* Commented full solution
2019-03-29 08:20:11 -07:00
coderlyn 64efcac199 Add hints and solution for this challenge (#34430)
* Add hints and solution for this challenge

* Add original challenge seed code to solution
2019-03-29 07:50:30 -07:00
coderlyn 7bc3f6378f Add hint and solution (#34429)
* Add hint and solution

* Add original challenge seed code to solution
2019-03-29 07:38:07 -07:00
Nikolai Kiselev 03c603787f Add solution to Arguments Optional challenge (#35654)
* Add solution to Arguments Optional challenge

* fix: remove repl.it links

* fix: rename variables

* fix: remove unused parts of template

* fix: update links markdown

* fix: replaced existing Intermediate with this one
2019-03-29 06:17:56 -07:00
Cătălin Udroiu e5aabc38f5 Introduction for Coding Interview Prep (#29351)
* Introduction for Coding Interview Prep

* Fix grammar and phrasing
2019-03-29 05:50:36 -04:00
grets311 3ece63f044 Update solution to meet exercise criteria (#34583)
The exercise requires a match at greater than 5 characters however the solution has a match occurring at a minimum of 5.
Request to update 5 to a 6.
2019-03-29 04:55:24 -04:00
James Liu 158601fa5d Initial guide >= stub. Includes hints. (#34019)
* Initial guide >= stub. Includes hints.

* Update index.md
2019-03-28 17:40:26 -07:00
Catherine 1df0fcdb9f Adding a second solution with a "for" loop (#35299)
* Adding a second solution with a "for" loop

+ adapted some texts to make the whole thing coherent
+ added some Useful links at the end of the article

* Update index.md

* Update index.md

* Update index.md

* Update index.md

* Update index.md

* Update index.md
2019-03-28 18:01:46 +05:30