From e2d6b5eb5f5e2b78cf018a374375d6919425cf52 Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Thu, 30 Jun 2022 17:44:45 +0200 Subject: [PATCH] fix(curriculum): typos find by crowdin (#46721) * fix(curriculum): typos find by crowdin * Convert link to standardize one Co-authored-by: Ilenia * Josephus function from parameter to parameters * description of hash from two arrays `arrays' length` * removed the mention of array length Co-authored-by: Tom <20648924+moT01@users.noreply.github.com> * changed cocktail shaker to cocktail sort Co-authored-by: Ilenia Co-authored-by: Tom <20648924+moT01@users.noreply.github.com> --- .../rosetta-code/hash-from-two-arrays.md | 2 +- .../10-coding-interview-prep/rosetta-code/josephus-problem.md | 2 +- .../rosetta-code/sorting-algorithms-cocktail-sort.md | 2 +- .../rosetta-code/sorting-algorithms-strand-sort.md | 4 ++-- .../take-home-projects/show-the-local-weather.md | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/hash-from-two-arrays.md b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/hash-from-two-arrays.md index eb36c931912..6f87cf09868 100644 --- a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/hash-from-two-arrays.md +++ b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/hash-from-two-arrays.md @@ -8,7 +8,7 @@ dashedName: hash-from-two-arrays # --description-- -Using two arrays of length, create a hash object where the elements from one array (the keys) are linked to the elements of the other (the values). +Given two arrays, create a hash object where the elements from one array (the keys) are linked to the elements of the other (the values). Example: diff --git a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/josephus-problem.md b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/josephus-problem.md index 0fa1fccf12a..9776019856d 100644 --- a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/josephus-problem.md +++ b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/josephus-problem.md @@ -26,7 +26,7 @@ Which number was he? # --instructions-- -Write a function that takes the initial number of prisoners and `k` as parameter and returns the number of the prisoner that survives. +Write a function that takes the initial number of prisoners and `k` as parameters and returns the number of the prisoner that survives. # --hints-- diff --git a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/sorting-algorithms-cocktail-sort.md b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/sorting-algorithms-cocktail-sort.md index b14d80236fc..100a26e8f9b 100644 --- a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/sorting-algorithms-cocktail-sort.md +++ b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/sorting-algorithms-cocktail-sort.md @@ -8,7 +8,7 @@ dashedName: sorting-algorithmscocktail-sort # --description-- -The cocktail shaker sort is an improvement on the Bubble Sort. Given an array of numbers, the cocktail shaker sort will traverse the array from start to finish, moving the largest number to the end. Then, it will traverse the array backwards and move the smallest number to the start. It repeats these two passes, moving the next largest/smallest number to its correct position in the array until it is sorted. +The cocktail sort is an improvement on the Bubble Sort. Given an array of numbers, the cocktail sort will traverse the array from start to finish, moving the largest number to the end. Then, it will traverse the array backwards and move the smallest number to the start. It repeats these two passes, moving the next largest/smallest number to its correct position in the array until it is sorted. # --instructions-- diff --git a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/sorting-algorithms-strand-sort.md b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/sorting-algorithms-strand-sort.md index 742f4eec1d4..67b598b69ae 100644 --- a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/sorting-algorithms-strand-sort.md +++ b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/sorting-algorithms-strand-sort.md @@ -10,9 +10,9 @@ dashedName: sorting-algorithmsstrand-sort The **Strand sort** creates sorted subsets that are merged to create the final result. -Consider an `unsortedArray = [3, 1, 4, 2]`. Pick the first element `3` and copy it into a separate array. Search for any bigger element following this element. When you find the a larger element, in this case `4`, copy it to the separate array, `[3, 4]`, and compare the following elements to this new value, `4`. +Consider an `unsortedArray = [3, 1, 4, 2]`. Pick the first item `3` and copy it into a separate array. Search for any bigger item following this item. When you find the a larger item, in this case `4`, copy it to the separate array, `[3, 4]`, and compare the following items to this new value, `4`. -After you have reached the end of the array, remove the elements you copied, `[3, 4]`, and start again with the first element remaining in the `unsortedArray`, in this case `1`. +After you have reached the end of the array, remove the items you copied, `[3, 4]`, and start again with the first item remaining in the `unsortedArray`, in this case `1`. Following this process results in two sorted arrays, `[3, 4]` and `[1, 2]`. Merge these two arrays to create the `strandSortedArray`. diff --git a/curriculum/challenges/english/10-coding-interview-prep/take-home-projects/show-the-local-weather.md b/curriculum/challenges/english/10-coding-interview-prep/take-home-projects/show-the-local-weather.md index 363e8bc1448..d5b751f8a62 100644 --- a/curriculum/challenges/english/10-coding-interview-prep/take-home-projects/show-the-local-weather.md +++ b/curriculum/challenges/english/10-coding-interview-prep/take-home-projects/show-the-local-weather.md @@ -8,7 +8,7 @@ dashedName: show-the-local-weather # --description-- -**Objective:** Build a an app that is functionally similar to this: . +**Objective:** Build an app that is functionally similar to this: https://codepen.io/freeCodeCamp/full/bELRjV. **Rule #1:** Don't look at the example project's code. Figure it out for yourself.