* fix: add clarification to question
* fix: adjust word placement
Adjust word placement in python for everybody curriculum
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
* fix: Data Analysis with Python- Incorrect answer for Numpy Operations
* Update curriculum/challenges/english/08-data-analysis-with-python/data-analysis-with-python-course/numpy-operations.english.md
Change option from 2 to 1
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
* fix: dictionaries and loops
* fix: dictionaries common applications
* fix: intermediate strings
* fix: introduction elements of python
* fix: networking using urllib in python
* fix: objects a sample class
* fix: python dictionaries
* fix: python lists
* fix: strings and lists
* fix: web services xml
* fix: refactor python questions to md
* fix: refactor questions to md
* fix: remove extra word
Removed unnecessary word is
* fix: add code blocks to answers
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* fix: format python code
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* fix(learn): update instructions
edited text - change "returns a random number" to "returns a random whole number" to be more clear on the problem statement.
Address review comments : add the keyword "whole" to description, to make it consistent with challenge title and Instructions.
* NumPy Algebra and Size: Size and Efficiency Question
* Update curriculum/challenges/english/08-data-analysis-with-python/data-analysis-with-python-course/numpy-algebra-and-size.english.md
Co-authored-by: Eric Leung <eric@erictleung.com>
Co-authored-by: Eric Leung <eric@erictleung.com>
* Importing CSV Using Pandas Module
* feat: process video question md into html (#38667)
* feat: process video question md into html
* test: mdToHTML
* fix: use dedicated prism component
* fix: Jupyter notebook challenge file name (#38740)
* fix quote error
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Eric Leung <eric@erictleung.com>
Co-authored-by: Beau Carnes <beaucarnes@gmail.com>
* fix: improve tests for video challenges
* fix: remove unused challenges + get rid of no description warning
* fix: remove non-existent challenges from meta
* Clarify definition of "symmetric difference"
* Add definition of binary operation
* Adjust wording in "Symmetric Difference"
* Improve preposition use
* Move instructions to the Instructions section
Co-authored-by: Eric Leung <eric@erictleung.com>
* Moved code tag to include new keyword
The new keyword hasn't been explained in the curriculum yet, so have moved the <code> tag to include the new keyword to give a prompt that it needs to be used in the solution.
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-arrow-functions-to-write-concise-anonymous-functions.english.md
Added comma.
Co-authored-by: Lasse Jørgensen <28780271+lasjorg@users.noreply.github.com>
* allow use of g flag
added functionality of tests to allow for the use of g flag by resetting the lastIndex as per example in https://github.com/freeCodeCamp/freeCodeCamp/pull/37941.
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/check-for-all-or-none.english.md
Co-Authored-By: Shaun Hamilton <51722130+Sky020@users.noreply.github.com>
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/check-for-all-or-none.english.md
Co-Authored-By: Shaun Hamilton <51722130+Sky020@users.noreply.github.com>
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/check-for-all-or-none.english.md
Co-Authored-By: Shaun Hamilton <51722130+Sky020@users.noreply.github.com>
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/check-for-all-or-none.english.md
Co-Authored-By: Shaun Hamilton <51722130+Sky020@users.noreply.github.com>
Co-authored-by: Shaun Hamilton <51722130+Sky020@users.noreply.github.com>
* Improve formatting and clarity in "Subset"
* Change method name to isSubsetOf
Co-authored-by: Eric Leung <eric@erictleung.com>
* Change method name to isSubsetOf
Co-authored-by: Eric Leung <eric@erictleung.com>
* Fix method name in tests
* Fix variable name aIsSubsetOfB
* Fix method name in solution
Co-authored-by: Eric Leung <eric@erictleung.com>
* fix: use example in modifying an object within a nested object exercise to explain how to do so
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/modify-an-object-nested-within-an-object.english.md
Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/modify-an-object-nested-within-an-object.english.md
Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/modify-an-object-nested-within-an-object.english.md
Co-authored-by: Shaun Hamilton <51722130+Sky020@users.noreply.github.com>
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/modify-an-object-nested-within-an-object.english.md
Co-authored-by: Shaun Hamilton <51722130+Sky020@users.noreply.github.com>
Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
Co-authored-by: Shaun Hamilton <51722130+Sky020@users.noreply.github.com>
* Fixed a Typo in Eulers Problem 70
Line 15 should say "Find the value of <var>n</var>, 1 < <var>n</var> < 10**7, for which φ(<var>n</var>) is a permutation of <var>n</var> and the ratio <var>n</var>/φ(<var>n</var>) produces a minimum." instead of Find the value of <var>n</var>, 1 < <var>n</var> < 107, for which φ(<var>n</var>) is a permutation of <var>n</var> and the ratio <var>n</var>/φ(<var>n</var>) produces a minimum.
* Updated the Markdown
Fixes the markdown to display proper superscript rather than just using ** to denote a superscript
* changes to bfs instructions
* added description on visual representation
* Added to the animation description
* Added information about stacks in the description
* Edited description for clarity
* Edited small details for grammar and clarity
* Apply suggested wording and typo fixes
Co-authored-by: Eric Leung <eric@erictleung.com>
* Add typo fixes to BFS challenge
Co-authored-by: Kyla Yujiri <27860923+kylayujiri@users.noreply.github.com>
Co-authored-by: Eric Leung <eric@erictleung.com>
* add: test to return early pattern
Currently no test for a = 0 or b = 0. This results in if(a<=0 || b<= 0) also being a valid solution
* fix: typo in test text
* fix: update return early pattern test
Co-authored-by: Shaun Hamilton <51722130+Sky020@users.noreply.github.com>
Co-authored-by: Shaun Hamilton <51722130+Sky020@users.noreply.github.com>
* Fixed typo "in the left" should be "at the left"
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/comparison-with-the-equality-operator.english.md
Co-Authored-By: Shaun Hamilton <51722130+Sky020@users.noreply.github.com>
Co-authored-by: Shaun Hamilton <51722130+Sky020@users.noreply.github.com>
* Update use-breadth-first-search-in-a-binary-search-tree.english.md
* Update curriculum/challenges/english/08-coding-interview-prep/data-structures/use-breadth-first-search-in-a-binary-search-tree.english.md
Committed suggested changes
Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>
* add debugging function to solution
Ensured seed code and solution matched-up.
Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
Co-authored-by: Shaun Hamilton <51722130+Sky020@users.noreply.github.com>
* fix(curriculum): replace comments with empty strings in merge-sort challenge
* Update curriculum/challenges/english/08-coding-interview-prep/algorithms/implement-merge-sort.english.md
Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
* Differentiate between test & match
I noticed that nowhere was there a mention that .match() and .test() pass in and are applied to opposite objects. This would've saved me a few minutes of searching during later challenges that assume this is understood.
* Add in .match & .test difference after example
* fix: add spaces to stop lint errors
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* Adding a test in problem-14-Longest-collatz-sequence.english.md
Adding a test in problem-14-Longest-collatz-sequence.english.md
* fix(curriculum): use more efficient algorithm
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* fix(Curriculum): ensure code that includes and is not equal to the flat or flatMap methods do not fail the test suite
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/steamroller.english.md
Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>
* Update steamroller.english.md
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
* fix(Curriculum): update examples on how to set key-value pairs
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/add-key-value-pairs-to-javascript-objects.english.md
Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/add-key-value-pairs-to-javascript-objects.english.md
Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>
* Update add-key-value-pairs-to-javascript-objects.english.md
* Update add-key-value-pairs-to-javascript-objects.english.md
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
* changed lesson to match behaviour
* Update wording for debugging
Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* Update wording from suggestion
Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* all suggestions with note
* fix: replaced code tags with backticks for markdown
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Ashraf Nazar <ashraf.caspian@gmail.com>
Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* Fix pig latin challenge description
Added statement for beginning with consonants and if a vowel does not begin with a vowel.
* fix: update description/instructions
* fix: removed extra line break
Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* fix: removed extra line break
Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* newlines in Authentication with Socket.IO, test 3
Both my original formatting and glitch's "format this file" button add a newline between "io.use(" and "passport.authorize"
".+" catches one or more of anything that isn't a newline.
"[^]+" catches one or more of anything including newlines.
This change updates the test accordingly so people who use glitch's formatting don't get left searching for assistance
* less permissive match to prevent shenanigans
Won't work with comments still.
* fix my own silliness
* fix: remove example code from challenge seed
* fix: remove declaration from solution
* fix: added sum variable back in
* fix: reverted description back to original version
* fix: added examples to description section
* fix: added complete sentence
Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* fix: corrected typo
Co-Authored-By: Manish Giri <manish.giri.me@gmail.com>
* fix: reverted to original desc with formatted code
* fix: removed unnecessary code example from description section
Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* fix: failiing test on iterate through array with for loop
* fix: changed to Only change this line
Co-Authored-By: Manish Giri <manish.giri.me@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Manish Giri <manish.giri.me@gmail.com>
Co-authored-by: moT01 <tmondloch01@gmail.com>
* Stronger test cases for testing objects for properties
Change function signature to take in a custom object to be tested
* YML formatting mistake
* Yaml no space in string
* Small one more fix - most likely final
* REmove double space in return
* Update instruction Section
* add: solution to project euler 22 md file
* Copied the array instead of using it directly
Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* fix: strip-comments-from-css
* fix: added challenge referenced in issue
* fix: added call to function removeCssComments
Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Como o inglês não posse gêneros em objetos (it), é necessário colocá-los em algumas traduções para que se mantenha a mesma claridade. Aqui era necessário pois o usuário pode não entender que o texto está se referindo a função em si.
Outras palavras foram mudadas para se condizer com as normas do português, assim como algumas pontuações.
* fix: consolidate/remove comments
* fix: remove => from comment
* fix: reverted changes to add same changes to another PR
* fix: removed 'the' from sentence
Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* fix: removed 'the' from the sentence
Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* fix: Chinese test suite
Add localeTiltes, descriptions, and adjust test text and testStrings to get the automated test suite working.
* fix: ran script, updated testStrings and solutions
* fix: improve Project Euler descriptions and test case
Improve formatting of Project Euler test descriptions. Also add poker hands array and new test case for problem 54
* feat: add typeof tests and gave functions proper names for first 100 challenges
* fix: continue fixing test descriptions and adding "before test" sections
* fix: address review comments
* fix: adjust grids in 18 and 67 and fix some text that reference files rather than the given arrays
* fix: implement bug fixes and improvements from review
* fix: remove console.log statements from seed and solution
Related to PR #38040
This PR is an attempt to consolidate/remove as many comments in the challenge seed code in the Responsive Web Design certification challenges, to be able to create a small translation lookup object for translating the English comments to other languages.
* Added meaning of ones in the matrix
* Apply suggestions from code review
Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* fix: add slash to avoid markdown lint error
Co-authored-by: mrugesh <1884376+raisedadead@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* add: solution to project euler problem 20
* Update curriculum/challenges/english/08-coding-interview-prep/project-euler/problem-20-factorial-digit-sum.english.md
Accidentally added last line. Calling function is unnecessary in solution.
Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* right place for starting braces
Co-Authored-By: Manish Giri <manish.giri.me@gmail.com>
* moved starting brace to previous line.
Co-Authored-By: Manish Giri <manish.giri.me@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Manish Giri <manish.giri.me@gmail.com>
* fix: added test to validate new array is returned
* fix: changed text to reflect changed test
Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* fix: correct test and add solution
I also changed the seed to report the results of an easier example to
the user, since just evaluating the function mostly wastes time.
* fix: use a better solution
* fix: credit original author
* Correct ProjectEuler:002 definition and tests
From projecteuler.net:
By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms.
Correct: take all f(n) where f(n) <= 4,000,000 and f(n) is even
Incorrect: take all f(n) where n <= 4,000,000 and f(n) is even
* Incorporate PR review suggestios to ProjectEuler 002
Reword the problem statement
Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
* fix: update to clarify new boilerplates used
Updating challenge text to make it more clear that learners need to switch to new boilerplate
* fix: improved wording to clarify new boilerplates used
Updating challenge text to be consistent and make it clear where learners are to switch to new boilerplate
Incorporating suggestions from PR #38124
* fix: Correct paths in English exercises by prefixing "/" before "learn"
* fix(lang): Correct paths to exercises by prefixing "/" before "learn" in remaining languages
* Move the comment on line 71 to its own line
The comment "use function argument destructuring" was on the same line as some code, and when displayed as a challenge it returned to a new line and was not commented out.
* Update line 71 comment per @manish-giri suggestion
Move the comment "use function argument destructuring" to above the "change code below this line" comment for clarity. Based on conversation in this pull request https://github.com/freeCodeCamp/freeCodeCamp/pull/38036
Either improved the algorithm or reduced the difficulty for the slowest
tests. All these pass with testProtectTimeout = 500, so should be safe
on most machines with the current timeout of 2500.
* Added href to empty <a> tag in social auth implementation II
* corrected typos in authentication with socketIO challenge
* corrected typo as suggested
Co-Authored-By: Eric Leung <eric@erictleung.com>
Co-authored-by: Eric Leung <eric@erictleung.com>
* Translation fix
Changed the term "portas de visualização" back to "viewport", because it is a technical term, and when translated it loses its meaning
* Changes in the blockquote tag
The code inside the blockquote tag was translated to portuguese, but code shouldn't be translated because then it doesn't work, so I changed it to the same code of the English version of the challenge.
Also, I changed "A Camper Cat" to "O Camper Cat" in the line 13 because on other pages Camper Cat is referred as male, so it makes more sense to use the article "O" in portuguese.