diff --git a/client/i18n/locales/english/intro.json b/client/i18n/locales/english/intro.json index a47a390f342..9825eeb1efc 100644 --- a/client/i18n/locales/english/intro.json +++ b/client/i18n/locales/english/intro.json @@ -789,7 +789,8 @@ "title": "Rosetta Code", "intro": [ "Level up your creative problem solving skills with these free programming tasks from the classic Rosetta Code library.", - "These challenges can prove to be difficult, but they will push your algorithm logic to new heights." + "These challenges can prove to be difficult, but they will push your algorithm logic to new heights.", + "Attribute: Rosetta Code" ] }, "project-euler": { diff --git a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/compare-a-list-of-strings.md b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/compare-a-list-of-strings.md index 56642a17876..8d8a378485a 100644 --- a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/compare-a-list-of-strings.md +++ b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/compare-a-list-of-strings.md @@ -8,7 +8,7 @@ dashedName: compare-a-list-of-strings # --description-- -A list or sequence is an abstract data type that represents a finite number of ordered values, where the same value may occur more than once. Here is an example: +A list is a ordered set of values that may contain duplicates. Here is an example: ```js const list = [['AA', 'BB', 'CC'], ['AA', 'ACB', 'AA'], [], ['AA']]; diff --git a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/cramers-rule.md b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/cramers-rule.md index 32d2ea35a31..2f15d08d1e8 100644 --- a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/cramers-rule.md +++ b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/cramers-rule.md @@ -8,9 +8,13 @@ dashedName: cramers-rule # --description-- -In linear algebra, Cramer's rule is an explicit formula for the solution of a system of linear equations with as many equations as unknowns, valid whenever the system has a unique solution. It expresses the solution in terms of the determinants of the (square) coefficient matrix and of matrices obtained from it by replacing one column by the vector of right hand sides of the equations. +Cramer's rule is a formula for solving a system of linear equations by using the determinates of matrixes formed from subsets of the coefficients and right hand side values. -Given +The determinate of a matrix with 2 rows and two columns is given by: + +$\begin{aligned}|A|={\begin{vmatrix}a&b\\\c&d\end{vmatrix}}=ad-bc.\end{aligned}$ + +Given a system of linear equations: $\\left\\{\\begin{matrix}a_1x + b_1y + c_1z&= {\\color{red}d_1}\\\\a_2x + b_2y + c_2z&= {\\color{red}d_2}\\\\a_3x + b_3y + c_3z&= {\\color{red}d_3}\\end{matrix}\\right.$ diff --git a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/cumulative-standard-deviation.md b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/cumulative-standard-deviation.md index f8d927c5ac6..728c5e4a494 100644 --- a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/cumulative-standard-deviation.md +++ b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/cumulative-standard-deviation.md @@ -33,7 +33,7 @@ and the population standard deviation is equal to the square root of the varianc $$\sigma ={\sqrt {4}}=2$$ -Write a function that takes an array of numbers as parameter and returns the standard deviation of the series. +Write a function that takes an array of numbers as parameter and returns the standard deviation of the series. # --hints-- diff --git a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/discordian-date.md b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/discordian-date.md index e107b5313a0..bb1818acaf7 100644 --- a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/discordian-date.md +++ b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/discordian-date.md @@ -10,12 +10,24 @@ dashedName: discordian-date The Gregorian calendar is a solar calendar with 12 months of 28–31 days each. The year in both calendars consists of 365 days, with a leap day added to February in the leap years except for three centurial years every 400 years. -The Discordian calendar is aligned with the Gregorian calendar and begins on January 1. Its week consists of five days, there are 73 weeks per year. Every fourth year in the Discordian calendar, an extra day is inserted between Chaos 59 and Chaos 60 +The Discordian calendar is aligned with the Gregorian calendar and begins on January 1. Its week consists of five days, there are 73 weeks per year. Every fourth year in the Discordian calendar, an extra day is inserted between Chaos 59 and Chaos 60. -Note that in the Discordian calendar Chaos 1, 3188 YOLD is January 1, 2022, in the Gregorian calendar. +The months, weekdays, and events in the Discordian calendar are given by: + +Seasons: `'Chaos', 'Discord', 'Confusion', 'Bureaucracy', 'The Aftermath'`. + +Weekday: `'Sweetmorn', 'Boomtime', 'Pungenday', 'Prickle-Prickle', 'Setting Orange'`. + +Apostle: `'Mungday', 'Mojoday', 'Syaday', 'Zaraday', 'Maladay'`. + +Holidays: `'Chaoflux', 'Discoflux', 'Confuflux', 'Bureflux', 'Afflux'`. + +# --instructions-- Convert a given date from the Gregorian calendar to the Discordian calendar. +Note that in the Discordian calendar (Chaos 1, 3188 YOLD) is (January 1, 2022), in the Gregorian calendar. + # --hints-- `discordianDate` should be a function. diff --git a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/i-before-e-except-after-c.md b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/i-before-e-except-after-c.md index 72c6e7d9652..86efa2498a9 100644 --- a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/i-before-e-except-after-c.md +++ b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/i-before-e-except-after-c.md @@ -8,7 +8,7 @@ dashedName: i-before-e-except-after-c # --description-- -**"I before E, except after C"** is a mnemonic rule of thumb for English spelling. If one is unsure whether a word is spelled with the digraph `ei` or `ie`, the rhyme suggests that the correct order is `ie` unless the preceding letter is `c`, in which case it may be `ei`. +**"I before E, except after C"** is a general rule for English language spelling. If one is unsure whether a word is spelled with the digraph `ei` or `ie`, the rhyme suggests that the correct order is `ie` unless the preceding letter is `c`, in which case it may be `ei`. Using the words provided, check if the two sub-clauses of the phrase are plausible individually: diff --git a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/sedols.md b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/sedols.md index c9d0f4aa330..37d17e4a4f7 100644 --- a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/sedols.md +++ b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/sedols.md @@ -8,11 +8,9 @@ dashedName: sedols # --description-- -SEDOL is a list of security identifiers used in the United Kingdom and Ireland for clearing purposes. The numbers are assigned by the London Stock Exchange, on request by the security issuer. +SEDOL is a list of securities identification numbers issued by the London Stock Exchange. -SEDOLs serve as the National Securities Identifying Number for all securities issued in the United Kingdom and are therefore part of the security's ISIN as well. The SEDOL Masterfile provides reference data on millions of global multi-asset securities each uniquely identified at the market level using a universal SEDOL code. - -For each number list of 6-digit SEDOLs, calculate and append the `checkSum` digit. That is, given the input string on the left, your function should return the corresponding string on the right: +For each number list of 6-digit SEDOLs, calculate and append the checksum digit. That is, given the input string on the left, your function should return the corresponding string on the right:
710889 => 7108899