diff --git a/config/exercise-readme-insert.md b/config/exercise-readme-insert.md new file mode 100644 index 000000000..67b70d417 --- /dev/null +++ b/config/exercise-readme-insert.md @@ -0,0 +1,27 @@ +## Setup + +Go through the setup instructions for TypeScript to install the necessary +dependencies: + +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) + +## Requirements + +Install assignment dependencies: + +```bash +$ yarn install +``` + +## Making the test suite pass + +Execute the tests with: + +```bash +$ yarn test +``` + +In the test suites all tests but the first have been skipped. + +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. diff --git a/config/exercise_readme.go.tmpl b/config/exercise_readme.go.tmpl index 571566562..ed3af1210 100644 --- a/config/exercise_readme.go.tmpl +++ b/config/exercise_readme.go.tmpl @@ -4,34 +4,15 @@ {{- with .Hints }} {{ . }} {{ end }} -## Setup - -Go through the setup instructions for TypeScript to -install the necessary dependencies: - -http://exercism.io/languages/typescript - -## Requirements - -Install assignment dependencies: - -```bash -$ yarn install -``` - -## Making the test suite pass - -Execute the tests with: - -```bash -$ yarn test -``` - - -{{ with .Spec.Credits }} +{{- with .TrackInsert }} +{{ . }} +{{ end }} +{{- with .Spec.Credits -}} ## Source {{ . }} {{ end }} ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/accumulate/README.md b/exercises/accumulate/README.md index 4e89064b3..e801c3cba 100644 --- a/exercises/accumulate/README.md +++ b/exercises/accumulate/README.md @@ -27,10 +27,10 @@ Solve this one yourself using other basic tools instead. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -48,11 +48,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Conversation with James Edward Gray II [https://twitter.com/jeg2](https://twitter.com/jeg2) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/acronym/README.md b/exercises/acronym/README.md index cf1ac8855..f65395a55 100644 --- a/exercises/acronym/README.md +++ b/exercises/acronym/README.md @@ -9,10 +9,10 @@ like Portable Network Graphics to its acronym (PNG). ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -30,11 +30,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Julien Vanier [https://github.com/monkbroc](https://github.com/monkbroc) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/all-your-base/README.md b/exercises/all-your-base/README.md index d7e19e550..0f923839c 100644 --- a/exercises/all-your-base/README.md +++ b/exercises/all-your-base/README.md @@ -33,10 +33,10 @@ I think you got the idea! ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -54,7 +54,13 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. + +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/allergies/README.md b/exercises/allergies/README.md index ba8de238c..3f3db282a 100644 --- a/exercises/allergies/README.md +++ b/exercises/allergies/README.md @@ -31,10 +31,10 @@ score is 257, your program should only report the eggs (1) allergy. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -52,11 +52,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Jumpstart Lab Warm-up [http://jumpstartlab.com](http://jumpstartlab.com) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/alphametics/README.md b/exercises/alphametics/README.md index 5794185a2..8326b46bf 100644 --- a/exercises/alphametics/README.md +++ b/exercises/alphametics/README.md @@ -33,17 +33,17 @@ Write a function to solve alphametics puzzles. ## Setup -Go through the setup instructions for Javascript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -[https://exercism.io/tracks/javascript/installation](https://exercism.io/tracks/javascript/installation) +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements Install assignment dependencies: ```bash -$ npm install +$ yarn install ``` ## Making the test suite pass @@ -51,14 +51,16 @@ $ npm install Execute the tests with: ```bash -$ npm test +$ yarn test ``` In the test suites all tests but the first have been skipped. -Once you get a test passing, you can enable the next one by -changing `xtest` to `test`. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/anagram/README.md b/exercises/anagram/README.md index aaf276462..73749ca34 100644 --- a/exercises/anagram/README.md +++ b/exercises/anagram/README.md @@ -8,10 +8,10 @@ Given `"listen"` and a list of candidates like `"enlists" "google" ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -29,11 +29,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Inspired by the Extreme Startup game [https://github.com/rchatley/extreme_startup](https://github.com/rchatley/extreme_startup) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/armstrong-numbers/README.md b/exercises/armstrong-numbers/README.md index 127804326..0f7dd6125 100644 --- a/exercises/armstrong-numbers/README.md +++ b/exercises/armstrong-numbers/README.md @@ -5,7 +5,7 @@ An [Armstrong number](https://en.wikipedia.org/wiki/Narcissistic_number) is a nu For example: - 9 is an Armstrong number, because `9 = 9^1 = 9` -- 10 is *not* an Armstrong number, because `10 != 1^2 + 0^2 = 2` +- 10 is *not* an Armstrong number, because `10 != 1^2 + 0^2 = 1` - 153 is an Armstrong number, because: `153 = 1^3 + 5^3 + 3^3 = 1 + 125 + 27 = 153` - 154 is *not* an Armstrong number, because: `154 != 1^3 + 5^3 + 4^3 = 1 + 125 + 64 = 190` @@ -13,10 +13,10 @@ Write some code to determine whether a number is an Armstrong number. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -34,11 +34,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Wikipedia [https://en.wikipedia.org/wiki/Narcissistic_number](https://en.wikipedia.org/wiki/Narcissistic_number) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/atbash-cipher/README.md b/exercises/atbash-cipher/README.md index 8d01a8325..f8016e3b8 100644 --- a/exercises/atbash-cipher/README.md +++ b/exercises/atbash-cipher/README.md @@ -30,10 +30,10 @@ things based on word boundaries. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -51,11 +51,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Wikipedia [http://en.wikipedia.org/wiki/Atbash](http://en.wikipedia.org/wiki/Atbash) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/beer-song/README.md b/exercises/beer-song/README.md index 04ed27920..f193c81a6 100644 --- a/exercises/beer-song/README.md +++ b/exercises/beer-song/README.md @@ -322,10 +322,10 @@ experiment make the code better? Worse? Did you learn anything from it? ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -343,11 +343,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Learn to Program by Chris Pine [http://pine.fm/LearnToProgram/?Chapter=06](http://pine.fm/LearnToProgram/?Chapter=06) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/binary-search-tree/README.md b/exercises/binary-search-tree/README.md index ba8fca768..06a53a09a 100644 --- a/exercises/binary-search-tree/README.md +++ b/exercises/binary-search-tree/README.md @@ -55,10 +55,10 @@ And if we then added 1, 5, and 7, it would look like this ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -76,11 +76,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Josh Cheek [https://twitter.com/josh_cheek](https://twitter.com/josh_cheek) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/binary-search/README.md b/exercises/binary-search/README.md index 6fd01e35d..8e189998e 100644 --- a/exercises/binary-search/README.md +++ b/exercises/binary-search/README.md @@ -36,10 +36,10 @@ A binary search is a dichotomic divide and conquer search algorithm. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -57,11 +57,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Wikipedia [http://en.wikipedia.org/wiki/Binary_search_algorithm](http://en.wikipedia.org/wiki/Binary_search_algorithm) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/bob/README.md b/exercises/bob/README.md index 8eb1e3ecb..e93b7c8c5 100644 --- a/exercises/bob/README.md +++ b/exercises/bob/README.md @@ -13,10 +13,10 @@ He answers 'Whatever.' to anything else. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -34,11 +34,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Inspired by the 'Deaf Grandma' exercise in Chris Pine's Learn to Program tutorial. [http://pine.fm/LearnToProgram/?Chapter=06](http://pine.fm/LearnToProgram/?Chapter=06) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/bowling/README.md b/exercises/bowling/README.md index d9e21e5a2..c4d7dde78 100644 --- a/exercises/bowling/README.md +++ b/exercises/bowling/README.md @@ -62,10 +62,10 @@ support two operations: ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -83,11 +83,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source The Bowling Game Kata at but UncleBob [http://butunclebob.com/ArticleS.UncleBob.TheBowlingGameKata](http://butunclebob.com/ArticleS.UncleBob.TheBowlingGameKata) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/bracket-push/README.md b/exercises/bracket-push/README.md index 83eb9e168..594a1d786 100644 --- a/exercises/bracket-push/README.md +++ b/exercises/bracket-push/README.md @@ -1,14 +1,15 @@ # Bracket Push -Given a string containing brackets `[]`, braces `{}` and parentheses `()`, -verify that all the pairs are matched and nested correctly. +Given a string containing brackets `[]`, braces `{}`, parentheses `()`, +or any combination thereof, verify that any and all pairs are matched +and nested correctly. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -26,11 +27,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Ginna Baker ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/circular-buffer/README.md b/exercises/circular-buffer/README.md index 2fd1b6bd5..e60711e63 100644 --- a/exercises/circular-buffer/README.md +++ b/exercises/circular-buffer/README.md @@ -52,10 +52,10 @@ the buffer is once again full. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -73,11 +73,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Wikipedia [http://en.wikipedia.org/wiki/Circular_buffer](http://en.wikipedia.org/wiki/Circular_buffer) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/clock/README.md b/exercises/clock/README.md index 0cb5cc102..393db1914 100644 --- a/exercises/clock/README.md +++ b/exercises/clock/README.md @@ -8,10 +8,10 @@ Two clocks that represent the same time should be equal to each other. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -29,11 +29,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Pairing session with Erin Drummond [https://twitter.com/ebdrummond](https://twitter.com/ebdrummond) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/collatz-conjecture/README.md b/exercises/collatz-conjecture/README.md index 67a2d92f6..215e8fd0c 100644 --- a/exercises/collatz-conjecture/README.md +++ b/exercises/collatz-conjecture/README.md @@ -28,10 +28,10 @@ Resulting in 9 steps. So for input n = 12, the return value would be 9. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -49,11 +49,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source An unsolved problem in mathematics named after mathematician Lothar Collatz [https://en.wikipedia.org/wiki/3x_%2B_1_problem](https://en.wikipedia.org/wiki/3x_%2B_1_problem) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/complex-numbers/README.md b/exercises/complex-numbers/README.md index 4884f3587..2dfd09e12 100644 --- a/exercises/complex-numbers/README.md +++ b/exercises/complex-numbers/README.md @@ -1,12 +1,16 @@ # Complex Numbers -A complex number is a number in the form `a + b * i` where `a` and `b` are real and `i` satisfies `i^2 = -1`. +A complex number is a number in the form `a + b * i` where `a` and `b` are real +and `i` satisfies `i^2 = -1`. `a` is called the real part and `b` is called the imaginary part of `z`. The conjugate of the number `a + b * i` is the number `a - b * i`. -The absolute value of a complex number `z = a + b * i` is a real number `|z| = sqrt(a^2 + b^2)`. The square of the absolute value `|z|^2` is the result of multiplication of `z` by its complex conjugate. +The absolute value of a complex number `z = a + b * i` is a real number +`|z| = sqrt(a^2 + b^2)`. The square of the absolute value `|z|^2` is the result +of multiplication of `z` by its complex conjugate. -The sum/difference of two complex numbers involves adding/subtracting their real and imaginary parts separately: +The sum/difference of two complex numbers involves adding/subtracting their real +and imaginary parts separately: `(a + i * b) + (c + i * d) = (a + c) + (b + d) * i`, `(a + i * b) - (c + i * d) = (a - c) + (b - d) * i`. @@ -19,10 +23,10 @@ The reciprocal of a non-zero complex number is Dividing a complex number `a + i * b` by another `c + i * d` gives: `(a + i * b) / (c + i * d) = (a * c + b * d)/(c^2 + d^2) + (b * c - a * d)/(c^2 + d^2) * i`. -Exponent of a complex number can be expressed as -`exp(a + i * b) = exp(a) * exp(i * b)`, -and the last term is given by Euler's formula `exp(i * b) = cos(b) + i * sin(b)`. - +Raising e to a complex exponent can be expressed as +`e^(a + i * b) = e^a * e^(i * b)`, +the last term of which is given by Euler's formula +`e^(i * b) = cos(b) + i * sin(b)`. Implement the following operations: - addition, subtraction, multiplication and division of two complex numbers, @@ -33,10 +37,10 @@ Assume the programming language you are using does not have an implementation of ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -54,11 +58,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Wikipedia [https://en.wikipedia.org/wiki/Complex_number](https://en.wikipedia.org/wiki/Complex_number) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/connect/README.md b/exercises/connect/README.md index c86a259b8..081250af6 100644 --- a/exercises/connect/README.md +++ b/exercises/connect/README.md @@ -32,10 +32,10 @@ won since `O` didn't connect top and bottom. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -53,7 +53,13 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. + +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/crypto-square/README.md b/exercises/crypto-square/README.md index ff9b948fe..4e3454898 100644 --- a/exercises/crypto-square/README.md +++ b/exercises/crypto-square/README.md @@ -12,11 +12,15 @@ regarded as forming a rectangle when printed with intervening newlines. For example, the sentence -> If man was meant to stay on the ground, god would have given us roots. +```text +"If man was meant to stay on the ground, god would have given us roots." +``` is normalized to: -> ifmanwasmeanttostayonthegroundgodwouldhavegivenusroots +```text +"ifmanwasmeanttostayonthegroundgodwouldhavegivenusroots" +``` The plaintext should be organized in to a rectangle. The size of the rectangle (`r x c`) should be decided by the length of the message, @@ -27,13 +31,13 @@ Our normalized text is 54 characters long, dictating a rectangle with `c = 8` and `r = 7`: ```text -ifmanwas -meanttos -tayonthe -groundgo -dwouldha -vegivenu -sroots +"ifmanwas" +"meanttos" +"tayonthe" +"groundgo" +"dwouldha" +"vegivenu" +"sroots " ``` The coded message is obtained by reading down the columns going left to @@ -42,39 +46,38 @@ right. The message above is coded as: ```text -imtgdvsfearwermayoogoanouuiontnnlvtwttddesaohghnsseoau +"imtgdvsfearwermayoogoanouuiontnnlvtwttddesaohghnsseoau" ``` -Output the encoded text in chunks. Phrases that fill perfect rectangles -`(r X c)` should be output `c` chunks of `r` length, separated by spaces. -Phrases that do not fill perfect rectangles will have `n` empty spaces. -Those spaces should be distributed evenly, added to the end of the last -`n` chunks. +Output the encoded text in chunks that fill perfect rectangles `(r X c)`, +with `c` chunks of `r` length, separated by spaces. For phrases that are +`n` characters short of the perfect rectangle, pad each of the last `n` +chunks with a single trailing space. ```text -imtgdvs fearwer mayoogo anouuio ntnnlvt wttddes aohghn sseoau +"imtgdvs fearwer mayoogo anouuio ntnnlvt wttddes aohghn sseoau " ``` Notice that were we to stack these, we could visually decode the -cyphertext back in to the original message: +ciphertext back in to the original message: ```text -imtgdvs -fearwer -mayoogo -anouuio -ntnnlvt -wttddes -aohghn -sseoau +"imtgdvs" +"fearwer" +"mayoogo" +"anouuio" +"ntnnlvt" +"wttddes" +"aohghn " +"sseoau " ``` ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -92,11 +95,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source J Dalbey's Programming Practice problems [http://users.csc.calpoly.edu/~jdalbey/103/Projects/ProgrammingPractice.html](http://users.csc.calpoly.edu/~jdalbey/103/Projects/ProgrammingPractice.html) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/custom-set/README.md b/exercises/custom-set/README.md index c826f4004..55b628609 100644 --- a/exercises/custom-set/README.md +++ b/exercises/custom-set/README.md @@ -9,10 +9,10 @@ unique elements. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -30,7 +30,13 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. + +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/diamond/README.md b/exercises/diamond/README.md index 834c00bb7..a39232281 100644 --- a/exercises/diamond/README.md +++ b/exercises/diamond/README.md @@ -54,10 +54,10 @@ E·······E ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -75,11 +75,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Seb Rose [http://claysnow.co.uk/recycling-tests-in-tdd/](http://claysnow.co.uk/recycling-tests-in-tdd/) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/difference-of-squares/README.md b/exercises/difference-of-squares/README.md index 3e0f04a06..5a7eefcf5 100644 --- a/exercises/difference-of-squares/README.md +++ b/exercises/difference-of-squares/README.md @@ -12,12 +12,16 @@ Hence the difference between the square of the sum of the first ten natural numbers and the sum of the squares of the first ten natural numbers is 3025 - 385 = 2640. +You are not expected to discover an efficient solution to this yourself from +first principles; research is allowed, indeed, encouraged. Finding the best +algorithm for the problem is a key skill in software engineering. + ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -35,11 +39,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Problem 6 at Project Euler [http://projecteuler.net/problem=6](http://projecteuler.net/problem=6) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/diffie-hellman/README.md b/exercises/diffie-hellman/README.md index 28139c2ed..3a6527a0e 100644 --- a/exercises/diffie-hellman/README.md +++ b/exercises/diffie-hellman/README.md @@ -39,10 +39,10 @@ secret s. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -60,11 +60,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Wikipedia, 1024 bit key from www.cryptopp.com/wiki. [http://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange](http://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/etl/README.md b/exercises/etl/README.md index 3ae7e01b3..020c043af 100644 --- a/exercises/etl/README.md +++ b/exercises/etl/README.md @@ -48,10 +48,10 @@ game while being scored at 4 in the Hawaiian-language version. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -69,11 +69,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source The Jumpstart Lab team [http://jumpstartlab.com](http://jumpstartlab.com) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/flatten-array/README.md b/exercises/flatten-array/README.md index b6ef801a9..994349e1a 100644 --- a/exercises/flatten-array/README.md +++ b/exercises/flatten-array/README.md @@ -12,10 +12,10 @@ output: [1,2,3,4,5] ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -33,11 +33,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Interview Question [https://reference.wolfram.com/language/ref/Flatten.html](https://reference.wolfram.com/language/ref/Flatten.html) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/food-chain/README.md b/exercises/food-chain/README.md index 0f2058cfd..fbca3594f 100644 --- a/exercises/food-chain/README.md +++ b/exercises/food-chain/README.md @@ -65,10 +65,10 @@ She's dead, of course! ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -86,11 +86,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Wikipedia [http://en.wikipedia.org/wiki/There_Was_an_Old_Lady_Who_Swallowed_a_Fly](http://en.wikipedia.org/wiki/There_Was_an_Old_Lady_Who_Swallowed_a_Fly) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/gigasecond/README.md b/exercises/gigasecond/README.md index 91c720358..58bfd08fe 100644 --- a/exercises/gigasecond/README.md +++ b/exercises/gigasecond/README.md @@ -1,15 +1,16 @@ # Gigasecond -Calculate the moment when someone has lived for 10^9 seconds. +Given a moment, determine the moment that would be after a gigasecond +has passed. A gigasecond is 10^9 (1,000,000,000) seconds. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -27,11 +28,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Chapter 9 in Chris Pine's online Learn to Program tutorial. [http://pine.fm/LearnToProgram/?Chapter=09](http://pine.fm/LearnToProgram/?Chapter=09) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/grade-school/README.md b/exercises/grade-school/README.md index b2cb0f09e..8c2bad6b3 100644 --- a/exercises/grade-school/README.md +++ b/exercises/grade-school/README.md @@ -36,10 +36,10 @@ experiment make the code better? Worse? Did you learn anything from it? ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -57,11 +57,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source A pairing session with Phil Battos at gSchool [http://gschool.it](http://gschool.it) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/grains/README.md b/exercises/grains/README.md index 903af8390..c49c286b5 100644 --- a/exercises/grains/README.md +++ b/exercises/grains/README.md @@ -6,14 +6,15 @@ on each square doubles. There once was a wise servant who saved the life of a prince. The king promised to pay whatever the servant could dream up. Knowing that the king loved chess, the servant told the king he would like to have grains -of wheat. One grain on the first square of a chess board. Two grains on -the next. Four on the third, and so on. +of wheat. One grain on the first square of a chess board, with the number +of grains doubling on each successive square. -There are 64 squares on a chessboard. +There are 64 squares on a chessboard (where square 1 has one grain, square 2 has +two grains, and so on). Write code that shows: -- how many grains were on each square, and -- the total number of grains +- how many grains were on a given square, and +- the total number of grains on the chessboard ## For bonus points @@ -28,10 +29,10 @@ experiment make the code better? Worse? Did you learn anything from it? ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -49,11 +50,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source JavaRanch Cattle Drive, exercise 6 [http://www.javaranch.com/grains.jsp](http://www.javaranch.com/grains.jsp) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/hamming/README.md b/exercises/hamming/README.md index b47afdf65..0f6f201a1 100644 --- a/exercises/hamming/README.md +++ b/exercises/hamming/README.md @@ -1,46 +1,42 @@ # Hamming -Calculate the Hamming difference between two DNA strands. +Calculate the Hamming Distance between two DNA strands. -A mutation is simply a mistake that occurs during the creation or -copying of a nucleic acid, in particular DNA. Because nucleic acids are -vital to cellular functions, mutations tend to cause a ripple effect -throughout the cell. Although mutations are technically mistakes, a very -rare mutation may equip the cell with a beneficial attribute. In fact, -the macro effects of evolution are attributable by the accumulated -result of beneficial microscopic mutations over many generations. +Your body is made up of cells that contain DNA. Those cells regularly wear out +and need replacing, which they achieve by dividing into daughter cells. In fact, +the average human body experiences about 10 quadrillion cell divisions in a +lifetime! -The simplest and most common type of nucleic acid mutation is a point -mutation, which replaces one base with another at a single nucleotide. +When cells divide, their DNA replicates too. Sometimes during this process +mistakes happen and single pieces of DNA get encoded with the incorrect +information. If we compare two strands of DNA and count the differences between +them we can see how many mistakes occurred. This is known as the "Hamming +Distance". -By counting the number of differences between two homologous DNA strands -taken from different genomes with a common ancestor, we get a measure of -the minimum number of point mutations that could have occurred on the -evolutionary path between the two strands. - -This is called the 'Hamming distance'. - -It is found by comparing two DNA strands and counting how many of the -nucleotides are different from their equivalent in the other string. +We read DNA using the letters C,A,G and T. Two strands might look like this: GAGCCTACTAACGGGAT CATCGTAATGACGGCCT ^ ^ ^ ^ ^ ^^ -The Hamming distance between these two DNA strands is 7. +They have 7 differences, and therefore the Hamming Distance is 7. + +The Hamming Distance is useful for lots of things in science, not just biology, +so it's a nice phrase to be familiar with :) # Implementation notes -The Hamming distance is only defined for sequences of equal length. This means -that based on the definition, each language could deal with getting sequences -of equal length differently. +The Hamming distance is only defined for sequences of equal length, so +an attempt to calculate it between sequences of different lengths should +not work. The general handling of this situation (e.g., raising an +exception vs returning a special value) may differ between languages. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -58,11 +54,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source The Calculating Point Mutations problem at Rosalind [http://rosalind.info/problems/hamm/](http://rosalind.info/problems/hamm/) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/hello-world/README.md b/exercises/hello-world/README.md index c39671718..2cec5c350 100644 --- a/exercises/hello-world/README.md +++ b/exercises/hello-world/README.md @@ -175,7 +175,7 @@ $ yarn test yarn run v1.2.1 $ tsc --noEmit -p . && jest --no-cache hello-world.test.ts(7,12): error TS2554: Expected 1 arguments, but got 0. -hello-world.ts(2,18): error TS6133: 'message' is declared but never used. +hello-world.ts(2,18): error TS6133: 'name' is declared but never used. ``` Ok, now we have problem with the 7th line of `hello-world.test.ts` – the method expects 1 argument but we pass 0: @@ -396,10 +396,10 @@ $ exercism submit hello-world.ts ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -417,11 +417,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source This is an exercise to introduce users to using Exercism [http://en.wikipedia.org/wiki/%22Hello,_world!%22_program](http://en.wikipedia.org/wiki/%22Hello,_world!%22_program) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/house/README.md b/exercises/house/README.md index d96bd6dbb..30a25a7f2 100644 --- a/exercises/house/README.md +++ b/exercises/house/README.md @@ -107,10 +107,10 @@ that lay in the house that Jack built. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -128,11 +128,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source British nursery rhyme [http://en.wikipedia.org/wiki/This_Is_The_House_That_Jack_Built](http://en.wikipedia.org/wiki/This_Is_The_House_That_Jack_Built) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/isbn-verifier/README.md b/exercises/isbn-verifier/README.md index 467914c86..7e107100d 100644 --- a/exercises/isbn-verifier/README.md +++ b/exercises/isbn-verifier/README.md @@ -5,7 +5,10 @@ numbers. These normally contain dashes and look like: `3-598-21508-8` ## ISBN -The ISBN-10 format is 9 digits (0 to 9) plus one check character (either a digit or an X only). In the case the check character is an X, this represents the value '10'. These may be communicated with or without hyphens, and can be checked for their validity by the following formula: +The ISBN-10 format is 9 digits (0 to 9) plus one check character (either a digit +or an X only). In the case the check character is an X, this represents the +value '10'. These may be communicated with or without hyphens, and can be +checked for their validity by the following formula: ``` (x1 * 10 + x2 * 9 + x3 * 8 + x4 * 7 + x5 * 6 + x6 * 5 + x7 * 4 + x8 * 3 + x9 * 2 + x10 * 1) mod 11 == 0 @@ -24,28 +27,33 @@ Since the result is 0, this proves that our ISBN is valid. ## Task -Given a string the program should check if the provided string is a valid ISBN-10. -Putting this into place requires some thinking about preprocessing/parsing of the string prior to calculating the check digit for the ISBN. +Given a string the program should check if the provided string is a valid +ISBN-10. +Putting this into place requires some thinking about preprocessing/parsing of +the string prior to calculating the check digit for the ISBN. -The program should be able to verify ISBN-10 both with and without separating dashes. +The program should be able to verify ISBN-10 both with and without separating +dashes. ## Caveats Converting from strings to numbers can be tricky in certain languages. -Now, it's even trickier since the check digit of an ISBN-10 may be 'X' (representing '10'). For instance `3-598-21507-X` is a valid ISBN-10. +Now, it's even trickier since the check digit of an ISBN-10 may be 'X' +(representing '10'). For instance `3-598-21507-X` is a valid ISBN-10. ## Bonus tasks -* Generate a valid ISBN-13 from the input ISBN-10 (and maybe verify it again with a derived verifier). +* Generate a valid ISBN-13 from the input ISBN-10 (and maybe verify it again +* with a derived verifier). * Generate valid ISBN, maybe even from a given starting ISBN. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -63,11 +71,17 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source -Converting a string into a number and some basic processing utilizing a relatable real world example. [https://en.wikipedia.org/wiki/International_Standard_Book_Number#ISBN-10_check_digit_calculation](https://en.wikipedia.org/wiki/International_Standard_Book_Number#ISBN-10_check_digit_calculation) +Converting a string into a number and some basic processing utilizing a +relatable real world example. [https://en.wikipedia.org/wiki/International_Standard_Book_Number#ISBN-10_check_digit_calculation](https://en.wikipedia.org/wiki/International_Standard_Book_Number#ISBN-10_check_digit_calculation) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/isogram/README.md b/exercises/isogram/README.md index 33e9ee952..9d144bc94 100644 --- a/exercises/isogram/README.md +++ b/exercises/isogram/README.md @@ -15,10 +15,10 @@ The word *isograms*, however, is not an isogram, because the s repeats. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -36,11 +36,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Wikipedia [https://en.wikipedia.org/wiki/Isogram](https://en.wikipedia.org/wiki/Isogram) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/kindergarten-garden/README.md b/exercises/kindergarten-garden/README.md index 6b409f3d9..c6935f45d 100644 --- a/exercises/kindergarten-garden/README.md +++ b/exercises/kindergarten-garden/README.md @@ -61,10 +61,10 @@ While asking for Bob's plants would yield: ## Setup -Go through the setup instructions for Typescript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -84,14 +84,14 @@ $ yarn test In the test suites all tests but the first have been skipped. -Once you get a test passing, you can enable the next one by -changing `xit` to `it`. - +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Random musings during airplane trip. [http://jumpstartlab.com](http://jumpstartlab.com) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. - + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/largest-series-product/README.md b/exercises/largest-series-product/README.md index e02de612d..6b8bb3189 100644 --- a/exercises/largest-series-product/README.md +++ b/exercises/largest-series-product/README.md @@ -15,10 +15,10 @@ the largest product for a series of 6 digits is 23520. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -36,11 +36,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source A variation on Problem 8 at Project Euler [http://projecteuler.net/problem=8](http://projecteuler.net/problem=8) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/leap/README.md b/exercises/leap/README.md index 9f35fb1f4..01a8a0499 100644 --- a/exercises/leap/README.md +++ b/exercises/leap/README.md @@ -13,9 +13,6 @@ on every year that is evenly divisible by 4 For example, 1997 is not a leap year, but 1996 is. 1900 is not a leap year, but 2000 is. -If your language provides a method in the standard library that does -this look-up, pretend it doesn't exist and implement it yourself. - ## Notes Though our exercise adopts some very simple rules, there is more to @@ -28,10 +25,10 @@ phenomenon, go watch [this youtube video][video]. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -49,11 +46,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source JavaRanch Cattle Drive, exercise 3 [http://www.javaranch.com/leap.jsp](http://www.javaranch.com/leap.jsp) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/linked-list/README.md b/exercises/linked-list/README.md index d9c892b18..a7465e6fb 100644 --- a/exercises/linked-list/README.md +++ b/exercises/linked-list/README.md @@ -29,10 +29,10 @@ If you want to know more about linked lists, check [Wikipedia](https://en.wikipe ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -50,11 +50,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Classic computer science topic ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/list-ops/README.md b/exercises/list-ops/README.md index 65891ec06..ec9a2afeb 100644 --- a/exercises/list-ops/README.md +++ b/exercises/list-ops/README.md @@ -6,12 +6,25 @@ In functional languages list operations like `length`, `map`, and `reduce` are very common. Implement a series of basic list operations, without using existing functions. +The precise number and names of the operations to be implemented will be +track dependent to avoid conflicts with existing names, but the general +operations you will implement include: + +* `append` (*given two lists, add all items in the second list to the end of the first list*); +* `concatenate` (*given a series of lists, combine all items in all lists into one flattened list*); +* `filter` (*given a predicate and a list, return the list of all items for which `predicate(item)` is True*); +* `length` (*given a list, return the total number of items within it*); +* `map` (*given a function and a list, return the list of the results of applying `function(item)` on all items*); +* `foldl` (*given a function, a list, and initial accumulator, fold (reduce) each item into the accumulator from the left using `function(accumulator, item)`*); +* `foldr` (*given a function, a list, and an initial accumulator, fold (reduce) each item into the accumulator from the right using `function(item, accumulator)`*); +* `reverse` (*given a list, return a list with all the original items, but in reversed order*); + ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -29,7 +42,13 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. + +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/luhn/README.md b/exercises/luhn/README.md index 4426f76f2..0df969019 100644 --- a/exercises/luhn/README.md +++ b/exercises/luhn/README.md @@ -66,10 +66,10 @@ Sum the digits ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -87,11 +87,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source The Luhn Algorithm on Wikipedia [http://en.wikipedia.org/wiki/Luhn_algorithm](http://en.wikipedia.org/wiki/Luhn_algorithm) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/matrix/README.md b/exercises/matrix/README.md index e87775a8d..901a509f7 100644 --- a/exercises/matrix/README.md +++ b/exercises/matrix/README.md @@ -14,11 +14,11 @@ So given a string with embedded newlines like: representing this matrix: ```text - 0 1 2 + 1 2 3 |--------- -0 | 9 8 7 -1 | 5 3 2 -2 | 6 6 7 +1 | 9 8 7 +2 | 5 3 2 +3 | 6 6 7 ``` your code should be able to spit out: @@ -42,10 +42,10 @@ And its columns: ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -63,11 +63,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Warmup to the `saddle-points` warmup. [http://jumpstartlab.com](http://jumpstartlab.com) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/minesweeper/README.md b/exercises/minesweeper/README.md index f7cc5d828..a86ca0ac4 100644 --- a/exercises/minesweeper/README.md +++ b/exercises/minesweeper/README.md @@ -28,10 +28,10 @@ into this: ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -49,7 +49,13 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. + +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/nth-prime/README.md b/exercises/nth-prime/README.md index 8d2ddfaea..cd3f629f7 100644 --- a/exercises/nth-prime/README.md +++ b/exercises/nth-prime/README.md @@ -10,10 +10,10 @@ numbers, pretend they don't exist and implement them yourself. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -31,11 +31,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source A variation on Problem 7 at Project Euler [http://projecteuler.net/problem=7](http://projecteuler.net/problem=7) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/nucleotide-count/README.md b/exercises/nucleotide-count/README.md index 1ab66951d..df78797eb 100644 --- a/exercises/nucleotide-count/README.md +++ b/exercises/nucleotide-count/README.md @@ -14,10 +14,10 @@ Here is an analogy: ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -35,11 +35,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source The Calculating DNA Nucleotides_problem at Rosalind [http://rosalind.info/problems/dna/](http://rosalind.info/problems/dna/) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/ocr-numbers/README.md b/exercises/ocr-numbers/README.md index ad6970943..c6dbd4b14 100644 --- a/exercises/ocr-numbers/README.md +++ b/exercises/ocr-numbers/README.md @@ -80,10 +80,10 @@ Is converted to "123,456,789" ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -101,11 +101,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Inspired by the Bank OCR kata [http://codingdojo.org/cgi-bin/wiki.pl?KataBankOCR](http://codingdojo.org/cgi-bin/wiki.pl?KataBankOCR) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/palindrome-products/README.md b/exercises/palindrome-products/README.md index 865a56709..7d5265f66 100644 --- a/exercises/palindrome-products/README.md +++ b/exercises/palindrome-products/README.md @@ -34,10 +34,10 @@ The largest palindrome product is `9009`. Its factors are `(91, 99)`. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -55,11 +55,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Problem 4 at Project Euler [http://projecteuler.net/problem=4](http://projecteuler.net/problem=4) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/pangram/README.md b/exercises/pangram/README.md index 38c4e91b6..5df3abe40 100644 --- a/exercises/pangram/README.md +++ b/exercises/pangram/README.md @@ -10,10 +10,10 @@ insensitive. Input will not contain non-ASCII symbols. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -31,11 +31,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Wikipedia [https://en.wikipedia.org/wiki/Pangram](https://en.wikipedia.org/wiki/Pangram) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/pascals-triangle/README.md b/exercises/pascals-triangle/README.md index 7bdb2e2d4..61f1cc62c 100644 --- a/exercises/pascals-triangle/README.md +++ b/exercises/pascals-triangle/README.md @@ -16,10 +16,10 @@ the right and left of the current position in the previous row. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -37,11 +37,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Pascal's Triangle at Wolfram Math World [http://mathworld.wolfram.com/PascalsTriangle.html](http://mathworld.wolfram.com/PascalsTriangle.html) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/perfect-numbers/README.md b/exercises/perfect-numbers/README.md index 6c1287b75..8c13209e3 100644 --- a/exercises/perfect-numbers/README.md +++ b/exercises/perfect-numbers/README.md @@ -19,10 +19,10 @@ Implement a way to determine whether a given number is **perfect**. Depending on ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -40,11 +40,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Taken from Chapter 2 of Functional Thinking by Neal Ford. [http://shop.oreilly.com/product/0636920029687.do](http://shop.oreilly.com/product/0636920029687.do) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/phone-number/README.md b/exercises/phone-number/README.md index 9a0d89865..615f5c1b8 100644 --- a/exercises/phone-number/README.md +++ b/exercises/phone-number/README.md @@ -30,10 +30,10 @@ should all produce the output ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -51,11 +51,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Event Manager by JumpstartLab [http://tutorials.jumpstartlab.com/projects/eventmanager.html](http://tutorials.jumpstartlab.com/projects/eventmanager.html) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/pig-latin/README.md b/exercises/pig-latin/README.md index 47d129fd8..5d9898c5a 100644 --- a/exercises/pig-latin/README.md +++ b/exercises/pig-latin/README.md @@ -19,10 +19,10 @@ See for more details. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -40,11 +40,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source The Pig Latin exercise at Test First Teaching by Ultrasaurus [https://github.com/ultrasaurus/test-first-teaching/blob/master/learn_ruby/pig_latin/](https://github.com/ultrasaurus/test-first-teaching/blob/master/learn_ruby/pig_latin/) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/prime-factors/README.md b/exercises/prime-factors/README.md index 91c8b1351..96996481d 100644 --- a/exercises/prime-factors/README.md +++ b/exercises/prime-factors/README.md @@ -31,10 +31,10 @@ You can check this yourself: ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -52,11 +52,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source The Prime Factors Kata by Uncle Bob [http://butunclebob.com/ArticleS.UncleBob.ThePrimeFactorsKata](http://butunclebob.com/ArticleS.UncleBob.ThePrimeFactorsKata) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/protein-translation/README.md b/exercises/protein-translation/README.md index 0753e8345..fbd6d185a 100644 --- a/exercises/protein-translation/README.md +++ b/exercises/protein-translation/README.md @@ -43,10 +43,10 @@ Learn more about [protein translation on Wikipedia](http://en.wikipedia.org/wiki ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -64,11 +64,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Tyler Long ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/proverb/README.md b/exercises/proverb/README.md index be776b257..832f5e4da 100644 --- a/exercises/proverb/README.md +++ b/exercises/proverb/README.md @@ -18,10 +18,10 @@ Note that the list of inputs may vary; your solution should be able to handle li ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -39,11 +39,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Wikipedia [http://en.wikipedia.org/wiki/For_Want_of_a_Nail](http://en.wikipedia.org/wiki/For_Want_of_a_Nail) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/pythagorean-triplet/README.md b/exercises/pythagorean-triplet/README.md index 7f3d6c0ba..86495b1df 100644 --- a/exercises/pythagorean-triplet/README.md +++ b/exercises/pythagorean-triplet/README.md @@ -7,22 +7,28 @@ which, a**2 + b**2 = c**2 ``` +and such that, + +```text +a < b < c +``` + For example, ```text 3**2 + 4**2 = 9 + 16 = 25 = 5**2. ``` -There exists exactly one Pythagorean triplet for which a + b + c = 1000. +Given an input integer N, find all Pythagorean triplets for which `a + b + c = N`. -Find the product a * b * c. +For example, with N = 1000, there is exactly one Pythagorean triplet for which `a + b + c = 1000`: `{200, 375, 425}`. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -40,11 +46,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Problem 9 at Project Euler [http://projecteuler.net/problem=9](http://projecteuler.net/problem=9) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/queen-attack/README.md b/exercises/queen-attack/README.md index 4d02a8258..87e721241 100644 --- a/exercises/queen-attack/README.md +++ b/exercises/queen-attack/README.md @@ -28,10 +28,10 @@ share a diagonal. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -49,11 +49,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source J Dalbey's Programming Practice problems [http://users.csc.calpoly.edu/~jdalbey/103/Projects/ProgrammingPractice.html](http://users.csc.calpoly.edu/~jdalbey/103/Projects/ProgrammingPractice.html) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/raindrops/README.md b/exercises/raindrops/README.md index 4bc96c0a6..9973253a5 100644 --- a/exercises/raindrops/README.md +++ b/exercises/raindrops/README.md @@ -19,10 +19,10 @@ Convert a number to a string, the contents of which depend on the number's facto ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -40,11 +40,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source A variation on a famous interview question intended to weed out potential candidates. [http://jumpstartlab.com](http://jumpstartlab.com) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/rational-numbers/README.md b/exercises/rational-numbers/README.md index 86ecdce55..4ac13a142 100644 --- a/exercises/rational-numbers/README.md +++ b/exercises/rational-numbers/README.md @@ -30,10 +30,10 @@ Assume that the programming language you are using does not have an implementati ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -51,11 +51,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Wikipedia [https://en.wikipedia.org/wiki/Rational_number](https://en.wikipedia.org/wiki/Rational_number) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/rectangles/README.md b/exercises/rectangles/README.md index 0b83c070b..33241a713 100644 --- a/exercises/rectangles/README.md +++ b/exercises/rectangles/README.md @@ -65,10 +65,10 @@ every line equals the length of the first line). ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -86,7 +86,13 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. + +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/reverse-string/README.md b/exercises/reverse-string/README.md index 2a0514d4b..232854922 100644 --- a/exercises/reverse-string/README.md +++ b/exercises/reverse-string/README.md @@ -8,10 +8,10 @@ output: "looc" ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -29,11 +29,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Introductory challenge to reverse an input string [https://medium.freecodecamp.org/how-to-reverse-a-string-in-javascript-in-3-different-ways-75e4763c68cb](https://medium.freecodecamp.org/how-to-reverse-a-string-in-javascript-in-3-different-ways-75e4763c68cb) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/rna-transcription/README.md b/exercises/rna-transcription/README.md index 0fcb8dcf3..04d195e68 100644 --- a/exercises/rna-transcription/README.md +++ b/exercises/rna-transcription/README.md @@ -20,10 +20,10 @@ each nucleotide with its complement: ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -41,11 +41,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Hyperphysics [http://hyperphysics.phy-astr.gsu.edu/hbase/Organic/transcription.html](http://hyperphysics.phy-astr.gsu.edu/hbase/Organic/transcription.html) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/robot-name/README.md b/exercises/robot-name/README.md index 84af131df..ef68acb39 100644 --- a/exercises/robot-name/README.md +++ b/exercises/robot-name/README.md @@ -17,10 +17,10 @@ every existing robot has a unique name. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -38,11 +38,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source A debugging session with Paul Blackwell at gSchool. [http://gschool.it](http://gschool.it) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/robot-simulator/README.md b/exercises/robot-simulator/README.md index 5f44cda8a..176f0aa48 100644 --- a/exercises/robot-simulator/README.md +++ b/exercises/robot-simulator/README.md @@ -29,10 +29,10 @@ direction it is pointing. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -50,11 +50,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Inspired by an interview question at a famous company. ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/roman-numerals/README.md b/exercises/roman-numerals/README.md index eba15c993..d12083d52 100644 --- a/exercises/roman-numerals/README.md +++ b/exercises/roman-numerals/README.md @@ -44,10 +44,10 @@ See also: http://www.novaroma.org/via_romana/numbers.html ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -65,11 +65,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source The Roman Numeral Kata [http://codingdojo.org/cgi-bin/index.pl?KataRomanNumerals](http://codingdojo.org/cgi-bin/index.pl?KataRomanNumerals) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/rotational-cipher/README.md b/exercises/rotational-cipher/README.md index 766ad98b1..01af46af6 100644 --- a/exercises/rotational-cipher/README.md +++ b/exercises/rotational-cipher/README.md @@ -32,10 +32,10 @@ Ciphertext is written out in the same formatting as the input including spaces a ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -53,11 +53,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Wikipedia [https://en.wikipedia.org/wiki/Caesar_cipher](https://en.wikipedia.org/wiki/Caesar_cipher) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/run-length-encoding/README.md b/exercises/run-length-encoding/README.md index c52ec4172..c6b6c816b 100644 --- a/exercises/run-length-encoding/README.md +++ b/exercises/run-length-encoding/README.md @@ -25,10 +25,10 @@ be decoded always represent the count for the following character. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -46,11 +46,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Wikipedia [https://en.wikipedia.org/wiki/Run-length_encoding](https://en.wikipedia.org/wiki/Run-length_encoding) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/say/README.md b/exercises/say/README.md index 8519ae28c..214b5a596 100644 --- a/exercises/say/README.md +++ b/exercises/say/README.md @@ -24,7 +24,7 @@ Some good test cases for this program are: ### Extension If you're on a Mac, shell out to Mac OS X's `say` program to talk out -loud. +loud. If you're on Linux or Windows, eSpeakNG may be available with the command `espeak`. ## Step 2 @@ -64,10 +64,10 @@ Use _and_ (correctly) when spelling out the number in English: ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -85,11 +85,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source A variation on JavaRanch CattleDrive, exercise 4a [http://www.javaranch.com/say.jsp](http://www.javaranch.com/say.jsp) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/scrabble-score/README.md b/exercises/scrabble-score/README.md index cfd219128..fe0c69f3d 100644 --- a/exercises/scrabble-score/README.md +++ b/exercises/scrabble-score/README.md @@ -41,10 +41,10 @@ And to total: ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -62,11 +62,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Inspired by the Extreme Startup game [https://github.com/rchatley/extreme_startup](https://github.com/rchatley/extreme_startup) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/secret-handshake/README.md b/exercises/secret-handshake/README.md index bcb3e600c..0a7a8f034 100644 --- a/exercises/secret-handshake/README.md +++ b/exercises/secret-handshake/README.md @@ -30,10 +30,10 @@ has caused the array to be reversed. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -51,11 +51,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Bert, in Mary Poppins [http://www.imdb.com/title/tt0058331/quotes/qt0437047](http://www.imdb.com/title/tt0058331/quotes/qt0437047) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/series/README.md b/exercises/series/README.md index f21584a55..5a2fed5b4 100644 --- a/exercises/series/README.md +++ b/exercises/series/README.md @@ -1,18 +1,18 @@ # Series Given a string of digits, output all the contiguous substrings of length `n` in -that string. +that string in the order that they appear. For example, the string "49142" has the following 3-digit series: -- 491 -- 914 -- 142 +- "491" +- "914" +- "142" And the following 4-digit series: -- 4914 -- 9142 +- "4914" +- "9142" And if you ask for a 6-digit series from a 5-digit string, you deserve whatever you get. @@ -22,10 +22,10 @@ in the input; the digits need not be *numerically consecutive*. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -43,11 +43,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source A subset of the Problem 8 at Project Euler [http://projecteuler.net/problem=8](http://projecteuler.net/problem=8) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/sieve/README.md b/exercises/sieve/README.md index bf07fd51d..d1afebb53 100644 --- a/exercises/sieve/README.md +++ b/exercises/sieve/README.md @@ -5,8 +5,8 @@ number. The Sieve of Eratosthenes is a simple, ancient algorithm for finding all prime numbers up to any given limit. It does so by iteratively marking as -composite (i.e. not prime) the multiples of each prime, -starting with the multiples of 2. +composite (i.e. not prime) the multiples of each prime, starting with the +multiples of 2. It does not use any division or remainder operation. Create your range, starting at two and continuing up to and including the given limit. (i.e. [2, limit]) @@ -25,14 +25,16 @@ https://en.wikipedia.org/wiki/Sieve_of_Eratosthenes Notice that this is a very specific algorithm, and the tests don't check that you've implemented the algorithm, only that you've come up with the -correct list of primes. +correct list of primes. A good first test is to check that you do not use +division or remainder operations (div, /, mod or % depending on the +language). ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -50,11 +52,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Sieve of Eratosthenes at Wikipedia [http://en.wikipedia.org/wiki/Sieve_of_Eratosthenes](http://en.wikipedia.org/wiki/Sieve_of_Eratosthenes) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/space-age/README.md b/exercises/space-age/README.md index b36477701..d4709a5bb 100644 --- a/exercises/space-age/README.md +++ b/exercises/space-age/README.md @@ -19,10 +19,10 @@ youtube video](http://www.youtube.com/watch?v=Z_2gbGXzFbs). ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -40,11 +40,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Partially inspired by Chapter 1 in Chris Pine's online Learn to Program tutorial. [http://pine.fm/LearnToProgram/?Chapter=01](http://pine.fm/LearnToProgram/?Chapter=01) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/spiral-matrix/README.md b/exercises/spiral-matrix/README.md index 5e7566149..4fb763906 100644 --- a/exercises/spiral-matrix/README.md +++ b/exercises/spiral-matrix/README.md @@ -25,10 +25,10 @@ like these examples: ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -46,11 +46,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Reddit r/dailyprogrammer challenge #320 [Easy] Spiral Ascension. [https://www.reddit.com/r/dailyprogrammer/comments/6i60lr/20170619_challenge_320_easy_spiral_ascension/](https://www.reddit.com/r/dailyprogrammer/comments/6i60lr/20170619_challenge_320_easy_spiral_ascension/) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/strain/README.md b/exercises/strain/README.md index 611ea7994..cce61da3f 100644 --- a/exercises/strain/README.md +++ b/exercises/strain/README.md @@ -35,10 +35,10 @@ basic tools instead. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -56,11 +56,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Conversation with James Edward Gray II [https://twitter.com/jeg2](https://twitter.com/jeg2) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/sublist/README.md b/exercises/sublist/README.md index bfcfceb02..096453885 100644 --- a/exercises/sublist/README.md +++ b/exercises/sublist/README.md @@ -19,10 +19,10 @@ Examples: ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -40,7 +40,13 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. + +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/sum-of-multiples/README.md b/exercises/sum-of-multiples/README.md index 873e51be1..e98e04643 100644 --- a/exercises/sum-of-multiples/README.md +++ b/exercises/sum-of-multiples/README.md @@ -10,10 +10,10 @@ The sum of these multiples is 78. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -31,11 +31,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source A variation on Problem 1 at Project Euler [http://projecteuler.net/problem=1](http://projecteuler.net/problem=1) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/transpose/README.md b/exercises/transpose/README.md index fdc4a985e..0ebf803f8 100644 --- a/exercises/transpose/README.md +++ b/exercises/transpose/README.md @@ -60,10 +60,10 @@ the corresponding output row should contain the spaces in its right-most column( ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -81,11 +81,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Reddit r/dailyprogrammer challenge #270 [Easy]. [https://www.reddit.com/r/dailyprogrammer/comments/4msu2x/challenge_270_easy_transpose_the_input_text](https://www.reddit.com/r/dailyprogrammer/comments/4msu2x/challenge_270_easy_transpose_the_input_text) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/triangle/README.md b/exercises/triangle/README.md index 734586a27..2ffe47494 100644 --- a/exercises/triangle/README.md +++ b/exercises/triangle/README.md @@ -24,10 +24,10 @@ a single line. Feel free to add your own code/tests to check for degenerate tria ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -45,11 +45,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source The Ruby Koans triangle project, parts 1 & 2 [http://rubykoans.com](http://rubykoans.com) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/twelve-days/README.md b/exercises/twelve-days/README.md index 3bb0dc1c7..08955430a 100644 --- a/exercises/twelve-days/README.md +++ b/exercises/twelve-days/README.md @@ -30,10 +30,10 @@ On the twelfth day of Christmas my true love gave to me: twelve Drummers Drummin ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -51,11 +51,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Wikipedia [http://en.wikipedia.org/wiki/The_Twelve_Days_of_Christmas_(song)](http://en.wikipedia.org/wiki/The_Twelve_Days_of_Christmas_(song)) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/two-bucket/README.md b/exercises/two-bucket/README.md index 8ed1e05c8..8ac3f7bc7 100644 --- a/exercises/two-bucket/README.md +++ b/exercises/two-bucket/README.md @@ -27,14 +27,14 @@ To conclude, the only valid moves are: - emptying one bucket and doing nothing to the other - filling one bucket and doing nothing to the other -Written with <3 at [Fullstack Academy](http://www.fullstackacademy.com/) by [Lindsay](http://lindsaylevine.com). +Written with <3 at [Fullstack Academy](http://www.fullstackacademy.com/) by Lindsay Levine. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -52,11 +52,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Water Pouring Problem [http://demonstrations.wolfram.com/WaterPouringProblem/](http://demonstrations.wolfram.com/WaterPouringProblem/) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/two-fer/README.md b/exercises/two-fer/README.md index 11f3d89fb..8483002de 100644 --- a/exercises/two-fer/README.md +++ b/exercises/two-fer/README.md @@ -2,22 +2,35 @@ `Two-fer` or `2-fer` is short for two for one. One for you and one for me. +Given a name, return a string with the message: + ```text -"One for X, one for me." +One for X, one for me. ``` -When X is a name or "you". +Where X is the given name. + +However, if the name is missing, return the string: + +```text +One for you, one for me. +``` -If the given name is "Alice", the result should be "One for Alice, one for me." -If no name is given, the result should be "One for you, one for me." +Here are some examples: +|Name |String to return +|:-------|:------------------ +|Alice |One for Alice, one for me. +|Bob |One for Bob, one for me. +| |One for you, one for me. +|Zaphod |One for Zaphod, one for me. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -35,11 +48,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source -[https://en.wikipedia.org/wiki/Two-fer](https://en.wikipedia.org/wiki/Two-fer) +[https://github.com/exercism/problem-specifications/issues/757](https://github.com/exercism/problem-specifications/issues/757) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/variable-length-quantity/README.md b/exercises/variable-length-quantity/README.md index 6af51ac50..4b90eb630 100644 --- a/exercises/variable-length-quantity/README.md +++ b/exercises/variable-length-quantity/README.md @@ -33,10 +33,10 @@ Here are examples of integers as 32-bit values, and the variable length quantiti ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -54,11 +54,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source A poor Splice developer having to implement MIDI encoding/decoding. [https://splice.com](https://splice.com) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/word-count/README.md b/exercises/word-count/README.md index 34d358d7a..a421a4b75 100644 --- a/exercises/word-count/README.md +++ b/exercises/word-count/README.md @@ -13,10 +13,10 @@ free: 1 ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -34,11 +34,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source This is a classic toy problem, but we were reminded of it by seeing it in the Go Tour. ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise. diff --git a/exercises/wordy/README.md b/exercises/wordy/README.md index a45289cac..e63009a2e 100644 --- a/exercises/wordy/README.md +++ b/exercises/wordy/README.md @@ -2,6 +2,14 @@ Parse and evaluate simple math word problems returning the answer as an integer. +## Iteration 0 — Numbers + +Problems with no operations simply evaluate to the number given. + +> What is 5? + +Evaluates to 5. + ## Iteration 1 — Addition Add two numbers together. @@ -43,6 +51,14 @@ left-to-right, _ignoring the typical order of operations._ 15 (i.e. not 9) +## Iteration 4 — Errors + +The parser should reject: + +* Unsupported operations ("What is 52 cubed?") +* Non-math questions ("Who is the President of the United States") +* Word problems with invalid syntax ("What is 1 plus plus 2?") + ## Bonus — Exponentials If you'd like, handle exponentials. @@ -53,10 +69,10 @@ If you'd like, handle exponentials. ## Setup -Go through the setup instructions for TypeScript to -install the necessary dependencies: +Go through the setup instructions for TypeScript to install the necessary +dependencies: -http://exercism.io/languages/typescript +[https://exercism.io/tracks/typescript/installation](https://exercism.io/tracks/typescript/installation) ## Requirements @@ -74,11 +90,16 @@ Execute the tests with: $ yarn test ``` +In the test suites all tests but the first have been skipped. +Once you get a test passing, you can enable the next one by changing `xit` to +`it`. ## Source Inspired by one of the generated questions in the Extreme Startup game. [https://github.com/rchatley/extreme_startup](https://github.com/rchatley/extreme_startup) ## Submitting Incomplete Solutions -It's possible to submit an incomplete solution so you can see how others have completed the exercise. + +It's possible to submit an incomplete solution so you can see how others have +completed the exercise.