Skip to content

Commit dc2dae9

Browse files
committed
Synced instructions from problem specifications.
1 parent 2dfa030 commit dc2dae9

File tree

4 files changed

+10
-13
lines changed

4 files changed

+10
-13
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Instructions
22

33
Given a string containing brackets `[]`, braces `{}`, parentheses `()`, or any combination thereof, verify that any and all pairs are matched and nested correctly.
4+
The string may also contain other characters, which for the purposes of this exercise should be ignored.

exercises/practice/say/.docs/instructions.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,3 @@ Put it all together to get nothing but plain English.
4848
`12345` should give `twelve thousand three hundred forty-five`.
4949

5050
The program must also report any values that are out of range.
51-
52-
### Extensions
53-
54-
Use _and_ (correctly) when spelling out the number in English:
55-
56-
- 14 becomes "fourteen".
57-
- 100 becomes "one hundred".
58-
- 120 becomes "one hundred and twenty".
59-
- 1002 becomes "one thousand and two".
60-
- 1323 becomes "one thousand three hundred and twenty-three".

exercises/practice/simple-cipher/.docs/instructions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ If anyone wishes to decipher these, and get at their meaning, he must substitute
99
—Suetonius, Life of Julius Caesar
1010

1111
Ciphers are very straight-forward algorithms that allow us to render text less readable while still allowing easy deciphering.
12-
They are vulnerable to many forms of cryptanalysis, but we are lucky that generally our little sisters are not cryptanalysts.
12+
They are vulnerable to many forms of cryptanalysis, but Caesar was lucky that his enemies were not cryptanalysts.
1313

1414
The Caesar Cipher was used for some messages from Julius Caesar that were sent afield.
1515
Now Caesar knew that the cipher wasn't very good, but he had one ally in that respect: almost nobody could read well.
@@ -29,9 +29,9 @@ When "ldpdsdqgdehdu" is put into the decode function it would return the origina
2929

3030
## Step 2
3131

32-
Shift ciphers are no fun though when your kid sister figures it out.
32+
Shift ciphers quickly cease to be useful when the opposition commander figures them out.
33+
So instead, let's try using a substitution cipher.
3334
Try amending the code to allow us to specify a key and use that for the shift distance.
34-
This is called a substitution cipher.
3535

3636
Here's an example:
3737

exercises/practice/space-age/.docs/instructions.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,10 @@ be able to say that they're 31.69 Earth-years old.
1616

1717
If you're wondering why Pluto didn't make the cut, go watch [this YouTube video][pluto-video].
1818

19+
Note: The actual length of one complete orbit of the Earth around the sun is closer to 365.256 days (1 sidereal year).
20+
The Gregorian calendar has, on average, 365.2425 days.
21+
While not entirely accurate, 365.25 is the value used in this exercise.
22+
See [Year on Wikipedia][year] for more ways to measure a year.
23+
1924
[pluto-video]: https://www.youtube.com/watch?v=Z_2gbGXzFbs
25+
[year]: https://en.wikipedia.org/wiki/Year#Summary

0 commit comments

Comments
 (0)