feat(curriculum): restore seed + solution to Chinese (#40683)

* feat(tools): add seed/solution restore script

* chore(curriculum): remove empty sections' markers

* chore(curriculum): add seed + solution to Chinese

* chore: remove old formatter

* fix: update getChallenges

parse translated challenges separately, without reference to the source

* chore(curriculum): add dashedName to English

* chore(curriculum): add dashedName to Chinese

* refactor: remove unused challenge property 'name'

* fix: relax dashedName requirement

* fix: stray tag

Remove stray `pre` tag from challenge file.

Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>

Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
This commit is contained in:
Oliver Eyton-Williams
2021-01-13 03:31:00 +01:00
committed by GitHub
parent 0095583028
commit ee1e8abd87
4163 changed files with 57505 additions and 10540 deletions

View File

@ -3,6 +3,7 @@ id: 594810f028c0303b75339acb
title: 100 doors
challengeType: 5
forumTopicId: 302217
dashedName: 100-doors
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5951e88f64ebf159166a1176
title: 24 game
challengeType: 5
forumTopicId: 302218
dashedName: 24-game
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5949b579404977fbaefcd736
title: 9 billion names of God the integer
challengeType: 5
forumTopicId: 302219
dashedName: 9-billion-names-of-god-the-integer
---
# --description--

View File

@ -3,6 +3,7 @@ id: 594810f028c0303b75339acc
title: ABC Problem
challengeType: 5
forumTopicId: 302220
dashedName: abc-problem
---
# --description--

View File

@ -3,6 +3,7 @@ id: 594810f028c0303b75339acd
title: 'Abundant, deficient and perfect number classifications'
challengeType: 5
forumTopicId: 302221
dashedName: abundant-deficient-and-perfect-number-classifications
---
# --description--

View File

@ -3,6 +3,7 @@ id: 594810f028c0303b75339ace
title: Accumulator factory
challengeType: 5
forumTopicId: 302222
dashedName: accumulator-factory
---
# --description--

View File

@ -3,6 +3,7 @@ id: 594810f028c0303b75339acf
title: Ackermann function
challengeType: 5
forumTopicId: 302223
dashedName: ackermann-function
---
# --description--

View File

@ -3,6 +3,7 @@ id: 594810f028c0303b75339ad0
title: Align columns
challengeType: 5
forumTopicId: 302224
dashedName: align-columns
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5949b579404977fbaefcd737
title: Amicable pairs
challengeType: 5
forumTopicId: 302225
dashedName: amicable-pairs
---
# --description--

View File

@ -3,6 +3,7 @@ id: 594d8d0ab97724821379b1e6
title: Averages/Mode
challengeType: 5
forumTopicId: 302226
dashedName: averagesmode
---
# --description--

View File

@ -3,6 +3,7 @@ id: 594d966a1467eb84194f0086
title: Averages/Pythagorean means
challengeType: 5
forumTopicId: 302227
dashedName: averagespythagorean-means
---
# --description--

View File

@ -3,6 +3,7 @@ id: 594da033de4190850b893874
title: Averages/Root mean square
challengeType: 5
forumTopicId: 302228
dashedName: averagesroot-mean-square
---
# --description--

View File

@ -3,6 +3,7 @@ id: 594db4d0dedb4c06a2a4cefd
title: Babbage problem
challengeType: 5
forumTopicId: 302229
dashedName: babbage-problem
---
# --description--

View File

@ -3,6 +3,7 @@ id: 594dc6c729e5700999302b45
title: Balanced brackets
challengeType: 5
forumTopicId: 302230
dashedName: balanced-brackets
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5951815dd895584b06884620
title: Circles of given radius through two points
challengeType: 5
forumTopicId: 302231
dashedName: circles-of-given-radius-through-two-points
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5951a53863c8a34f02bf1bdc
title: Closest-pair problem
challengeType: 5
forumTopicId: 302232
dashedName: closest-pair-problem
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5958469238c0d8d2632f46db
title: Combinations
challengeType: 5
forumTopicId: 302233
dashedName: combinations
---
# --description--

View File

@ -3,6 +3,7 @@ id: 596e414344c3b2872167f0fe
title: Comma quibbling
challengeType: 5
forumTopicId: 302234
dashedName: comma-quibbling
---
# --description--

View File

@ -3,6 +3,7 @@ id: 596e457071c35c882915b3e4
title: Compare a list of strings
challengeType: 5
forumTopicId: 302235
dashedName: compare-a-list-of-strings
---
# --description--

View File

@ -3,6 +3,7 @@ id: 596fd036dc1ab896c5db98b1
title: Convert seconds to compound duration
challengeType: 5
forumTopicId: 302236
dashedName: convert-seconds-to-compound-duration
---
# --description--

View File

@ -3,6 +3,7 @@ id: 596fda99c69f779975a1b67d
title: Count occurrences of a substring
challengeType: 5
forumTopicId: 302237
dashedName: count-occurrences-of-a-substring
---
# --description--

View File

@ -3,6 +3,7 @@ id: 59713bd26bdeb8a594fb9413
title: Count the coins
challengeType: 5
forumTopicId: 302238
dashedName: count-the-coins
---
# --description--

View File

@ -3,6 +3,7 @@ id: 59713da0a428c1a62d7db430
title: Cramer's rule
challengeType: 5
forumTopicId: 302239
dashedName: cramers-rule
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5a23c84252665b21eecc7e03
title: Cumulative standard deviation
challengeType: 5
forumTopicId: 302240
dashedName: cumulative-standard-deviation
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5a23c84252665b21eecc7e05
title: CUSIP
challengeType: 5
forumTopicId: 302241
dashedName: cusip
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5a23c84252665b21eecc7e06
title: Cut a rectangle
challengeType: 5
forumTopicId: 302242
dashedName: cut-a-rectangle
---
# --description--

View File

@ -3,6 +3,7 @@ id: 59669d08d75b60482359409f
title: Date format
challengeType: 5
forumTopicId: 302243
dashedName: date-format
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5966c21cf732a95f1b67dd28
title: Date manipulation
challengeType: 5
forumTopicId: 302244
dashedName: date-manipulation
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5966f99c45e8976909a85575
title: Day of the week
challengeType: 5
forumTopicId: 302245
dashedName: day-of-the-week
---
# --description--

View File

@ -3,6 +3,7 @@ id: 59694356a6e7011f7f1c5f4e
title: Deal cards for FreeCell
challengeType: 5
forumTopicId: 302246
dashedName: deal-cards-for-freecell
---
# --description--

View File

@ -3,6 +3,7 @@ id: 596a8888ab7c01048de257d5
title: Deepcopy
challengeType: 5
forumTopicId: 302247
dashedName: deepcopy
---
# --description--

View File

@ -3,6 +3,7 @@ id: 597089c87eec450c68aa1643
title: Define a primitive data type
challengeType: 5
forumTopicId: 302248
dashedName: define-a-primitive-data-type
---
# --description--

View File

@ -3,6 +3,7 @@ id: 59f40b17e79dbf1ab720ed7a
title: Department Numbers
challengeType: 5
forumTopicId: 302249
dashedName: department-numbers
---
# --description--

View File

@ -3,6 +3,7 @@ id: 59f4eafba0343628bb682785
title: Discordian date
challengeType: 5
forumTopicId: 302250
dashedName: discordian-date
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5a23c84252665b21eecc7e1e
title: Dot product
challengeType: 5
forumTopicId: 302251
dashedName: dot-product
---
# --description--

View File

@ -3,6 +3,7 @@ id: 599c333915e0ea32d04d4bec
title: Element-wise operations
challengeType: 5
forumTopicId: 302252
dashedName: element-wise-operations
---
# --description--

View File

@ -3,6 +3,7 @@ id: 599d0ba974141b0f508b37d5
title: Emirp primes
challengeType: 5
forumTopicId: 302253
dashedName: emirp-primes
---
# --description--

View File

@ -3,6 +3,7 @@ id: 599d15309e88c813a40baf58
title: Entropy
challengeType: 5
forumTopicId: 302254
dashedName: entropy
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5987fd532b954e0f21b5d3f6
title: Equilibrium index
challengeType: 5
forumTopicId: 302255
dashedName: equilibrium-index
---
# --description--

View File

@ -3,6 +3,7 @@ id: 599d1566a02b571412643b84
title: Ethiopian multiplication
challengeType: 5
forumTopicId: 302257
dashedName: ethiopian-multiplication
---
# --description--
@ -81,6 +82,7 @@ The task is to define three named functions/methods/procedures/subroutines:
Use these functions to create a function that does Ethiopian multiplication.
<!-- markdownlint-disable MD046-->
# --hints--
`eth_mult` should be a function.

View File

@ -3,6 +3,7 @@ id: 59880443fb36441083c6c20e
title: Euler method
challengeType: 5
forumTopicId: 302258
dashedName: euler-method
---
# --description--

View File

@ -3,6 +3,7 @@ id: 598de241872ef8353c58a7a2
title: Evaluate binomial coefficients
challengeType: 5
forumTopicId: 302259
dashedName: evaluate-binomial-coefficients
---
# --description--

View File

@ -3,6 +3,7 @@ id: 59e09e6d412c5939baa02d16
title: Execute a Markov algorithm
challengeType: 5
forumTopicId: 302260
dashedName: execute-a-markov-algorithm
---
# --description--

View File

@ -3,6 +3,7 @@ id: 59e0a8df964e4540d5abe599
title: Execute Brain****
challengeType: 5
forumTopicId: 302261
dashedName: execute-brain
---
# --description--

View File

@ -3,6 +3,7 @@ id: 598ee8b91b410510ae82efef
title: Extensible prime generator
challengeType: 5
forumTopicId: 302262
dashedName: extensible-prime-generator
---
# --description--

View File

@ -3,6 +3,7 @@ id: 597b2b2a2702b44414742771
title: Factorial
challengeType: 5
forumTopicId: 302263
dashedName: factorial
---
# --description--

View File

@ -3,6 +3,7 @@ id: 598eea87e5cf4b116c3ff81a
title: Factors of a Mersenne number
challengeType: 5
forumTopicId: 302264
dashedName: factors-of-a-mersenne-number
---
# --description--

View File

@ -3,6 +3,7 @@ id: 597f1e7fbc206f0e9ba95dc4
title: Factors of an integer
challengeType: 5
forumTopicId: 302265
dashedName: factors-of-an-integer
---
# --description--

View File

@ -3,6 +3,7 @@ id: 59c3ec9f15068017c96eb8a3
title: Farey sequence
challengeType: 5
forumTopicId: 302266
dashedName: farey-sequence
---
# --description--

View File

@ -3,6 +3,7 @@ id: 598eef80ba501f1268170e1e
title: Fibonacci n-step number sequences
challengeType: 5
forumTopicId: 302267
dashedName: fibonacci-n-step-number-sequences
---
# --description--

View File

@ -3,6 +3,7 @@ id: 597f24c1dda4e70f53c79c81
title: Fibonacci sequence
challengeType: 5
forumTopicId: 302268
dashedName: fibonacci-sequence
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5992e222d397f00d21122931
title: Fibonacci word
challengeType: 5
forumTopicId: 302269
dashedName: fibonacci-word
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5e9ddb06ec35240f39657419
title: FizzBuzz
challengeType: 5
forumTopicId: 385370
dashedName: fizzbuzz
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5a7dad05be01840e1778a0d1
title: Fractran
challengeType: 5
forumTopicId: 302270
dashedName: fractran
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5a23c84252665b21eecc7e76
title: Gamma function
challengeType: 5
forumTopicId: 302271
dashedName: gamma-function
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5a23c84252665b21eecc7e77
title: Gaussian elimination
challengeType: 5
forumTopicId: 302272
dashedName: gaussian-elimination
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5a23c84252665b21eecc7e78
title: General FizzBuzz
challengeType: 5
forumTopicId: 302273
dashedName: general-fizzbuzz
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5a23c84252665b21eecc7e7a
title: Generate lower case ASCII alphabet
challengeType: 5
forumTopicId: 302274
dashedName: generate-lower-case-ascii-alphabet
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5a23c84252665b21eecc7e7b
title: Generator/Exponential
challengeType: 5
forumTopicId: 302275
dashedName: generatorexponential
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5a23c84252665b21eecc7e80
title: Gray code
challengeType: 5
forumTopicId: 302276
dashedName: gray-code
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5a23c84252665b21eecc7e82
title: Greatest common divisor
challengeType: 5
forumTopicId: 302277
dashedName: greatest-common-divisor
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5a23c84252665b21eecc7e84
title: Greatest subsequential sum
challengeType: 5
forumTopicId: 302278
dashedName: greatest-subsequential-sum
---
# --description--

View File

@ -3,6 +3,7 @@ id: 595608ff8bcd7a50bd490181
title: Hailstone sequence
challengeType: 5
forumTopicId: 302279
dashedName: hailstone-sequence
---
# --description--

View File

@ -3,6 +3,7 @@ id: 594810f028c0303b75339ad1
title: Happy numbers
challengeType: 5
forumTopicId: 302280
dashedName: happy-numbers
---
# --description--

View File

@ -3,6 +3,7 @@ id: 595668ca4cfe1af2fb9818d4
title: Harshad or Niven series
challengeType: 5
forumTopicId: 302281
dashedName: harshad-or-niven-series
---
# --description--

View File

@ -3,6 +3,7 @@ id: 595671d4d2cdc305f0d5b36f
title: Hash from two arrays
challengeType: 5
forumTopicId: 302283
dashedName: hash-from-two-arrays
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5956795bc9e2c415eb244de1
title: Hash join
challengeType: 5
forumTopicId: 302284
dashedName: hash-join
---
# --description--

View File

@ -3,6 +3,7 @@ id: 595b98f8b5a2245e243aa831
title: Heronian triangles
challengeType: 5
forumTopicId: 302285
dashedName: heronian-triangles
---
# --description--

View File

@ -3,6 +3,7 @@ id: 59622f89e4e137560018a40e
title: Hofstadter Figure-Figure sequences
challengeType: 5
forumTopicId: 302286
dashedName: hofstadter-figure-figure-sequences
---
# --description--

View File

@ -3,6 +3,7 @@ id: 59637c4d89f6786115efd814
title: Hofstadter Q sequence
challengeType: 5
forumTopicId: 302287
dashedName: hofstadter-q-sequence
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5a23c84252665b21eecc7eb0
title: I before E except after C
challengeType: 5
forumTopicId: 302288
dashedName: i-before-e-except-after-c
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5a23c84252665b21eecc7eaf
title: IBAN
challengeType: 5
forumTopicId: 302289
dashedName: iban
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5a23c84252665b21eecc7eb1
title: Identity matrix
challengeType: 5
forumTopicId: 302290
dashedName: identity-matrix
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5a23c84252665b21eecc7ec1
title: Iterated digits squaring
challengeType: 5
forumTopicId: 302291
dashedName: iterated-digits-squaring
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5a23c84252665b21eecc7ec2
title: Jaro distance
challengeType: 5
forumTopicId: 302292
dashedName: jaro-distance
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5a23c84252665b21eecc7ec4
title: JortSort
challengeType: 5
forumTopicId: 302293
dashedName: jortsort
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5a23c84252665b21eecc7ec5
title: Josephus problem
challengeType: 5
forumTopicId: 302294
dashedName: josephus-problem
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5a23c84252665b21eecc7ecb
title: K-d tree
challengeType: 5
forumTopicId: 302295
dashedName: k-d-tree
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5a23c84252665b21eecc7eca
title: Kaprekar numbers
challengeType: 5
forumTopicId: 302296
dashedName: kaprekar-numbers
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5a23c84252665b21eecc7ed1
title: Knapsack problem/0-1
challengeType: 5
forumTopicId: 323649
dashedName: knapsack-problem0-1
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5a23c84252665b21eecc7ed2
title: Knapsack problem/Bounded
challengeType: 5
forumTopicId: 323652
dashedName: knapsack-problembounded
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5a23c84252665b21eecc7ed3
title: Knapsack problem/Continuous
challengeType: 5
forumTopicId: 323654
dashedName: knapsack-problemcontinuous
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5a23c84252665b21eecc7ed4
title: Knapsack problem/Unbounded
challengeType: 5
forumTopicId: 323655
dashedName: knapsack-problemunbounded
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5a23c84252665b21eecc7ed5
title: Knight's tour
challengeType: 5
forumTopicId: 302297
dashedName: knights-tour
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5a23c84252665b21eecc7edb
title: Largest int from concatenated ints
challengeType: 5
forumTopicId: 302298
dashedName: largest-int-from-concatenated-ints
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5a23c84252665b21eecc7edc
title: Last Friday of each month
challengeType: 5
forumTopicId: 302299
dashedName: last-friday-of-each-month
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5e4ce2b6ac708cc68c1df25e
title: Last letter-first letter
challengeType: 5
forumTopicId: 385256
dashedName: last-letter-first-letter
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5a23c84252665b21eecc7ede
title: Leap year
challengeType: 5
forumTopicId: 302300
dashedName: leap-year
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5a23c84252665b21eecc7edf
title: Least common multiple
challengeType: 5
forumTopicId: 302301
dashedName: least-common-multiple
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5a23c84252665b21eecc7ee0
title: Left factorials
challengeType: 5
forumTopicId: 302302
dashedName: left-factorials
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5e4ce2bbac708cc68c1df25f
title: Letter frequency
challengeType: 5
forumTopicId: 385263
dashedName: letter-frequency
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5e4ce2eaac708cc68c1df260
title: Levenshtein distance
challengeType: 5
forumTopicId: 385264
dashedName: levenshtein-distance
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5e4ce2f5ac708cc68c1df261
title: Linear congruential generator
challengeType: 5
forumTopicId: 385266
dashedName: linear-congruential-generator
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5e4ce2a1ac708cc68c1df25d
title: Long multiplication
challengeType: 5
forumTopicId: 385269
dashedName: long-multiplication
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5e6dd1278e6ca105cde40ea9
title: Longest common subsequence
challengeType: 5
forumTopicId: 385271
dashedName: longest-common-subsequence
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5e6dd139859c290b6ab80292
title: Longest increasing subsequence
challengeType: 5
forumTopicId: 385272
dashedName: longest-increasing-subsequence
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5e6dd14192286d95fc43046e
title: Longest string challenge
challengeType: 5
forumTopicId: 385275
dashedName: longest-string-challenge
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5e6dd14797f5ce267c2f19d0
title: Look-and-say sequence
challengeType: 5
forumTopicId: 385277
dashedName: look-and-say-sequence
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5e6dd15004c88cf00d2a78b3
title: Loop over multiple arrays simultaneously
challengeType: 5
forumTopicId: 385279
dashedName: loop-over-multiple-arrays-simultaneously
---
# --description--

View File

@ -3,6 +3,7 @@ id: 5e6decd8ec8d7db960950d1c
title: LU decomposition
challengeType: 5
forumTopicId: 385280
dashedName: lu-decomposition
---
# --description--

Some files were not shown because too many files have changed in this diff Show More