Samuel Warner 8 lat temu
rodzic
commit
8608cf08c3

+ 2
- 0
exercises/bob/README.md Wyświetl plik

@@ -6,6 +6,8 @@ Bob answers 'Sure.' if you ask him a question.
6 6
 
7 7
 He answers 'Whoa, chill out!' if you yell at him.
8 8
 
9
+He answers 'Calm down, I know what I'm doing!' if you yell a question at him.
10
+
9 11
 He says 'Fine. Be that way!' if you address him without actually saying
10 12
 anything.
11 13
 

+ 1
- 0
exercises/parallel-letter-frequency/README.md Wyświetl plik

@@ -15,6 +15,7 @@ Java documentation on [parallel streams](https://docs.oracle.com/javase/tutorial
15 15
 
16 16
 As a stretch goal, consider if your implementation will work for characters with [diacritics or accents](https://en.wikipedia.org/wiki/Diacritic). For example, such solutions should not consider e and ë the same character. An example text for this case is [Wilhelmus](https://en.wikipedia.org/wiki/Wilhelmus), the Dutch national anthem.
17 17
 
18
+
18 19
 # Running the tests
19 20
 
20 21
 You can run all the tests for an exercise by entering

+ 16
- 10
exercises/proverb/README.md Wyświetl plik

@@ -1,14 +1,20 @@
1
-# Proverb in Java
1
+# Proverb
2 2
 
3
-For want of a horseshoe nail, a kingdom was lost, or so the saying goes. Dynamically output the full test of this proverbial rhyme.
3
+For want of a horseshoe nail, a kingdom was lost, or so the saying goes.
4 4
 
5
-> For want of a nail the shoe was lost.<br>
6
-> For want of a shoe the horse was lost.<br>
7
-> For want of a horse the rider was lost.<br>
8
-> For want of a rider the message was lost.<br>
9
-> For want of a message the battle was lost.<br>
10
-> For want of a battle the kingdom was lost.<br>
11
-> And all for the want of a horseshoe nail.<br>
5
+Given a list of inputs, generate the relevant proverb. For example, given the list `["nail", "shoe", "horse", "rider", "message", "battle", "kingdom"]`, you will output the full text of this proverbial rhyme:
6
+
7
+```text
8
+For want of a nail the shoe was lost.
9
+For want of a shoe the horse was lost.
10
+For want of a horse the rider was lost.
11
+For want of a rider the message was lost.
12
+For want of a message the battle was lost.
13
+For want of a battle the kingdom was lost.
14
+And all for the want of a nail.
15
+```
16
+
17
+Note that the list of inputs may vary; your solution should be able to handle lists of arbitrary length and content. No line of the output text should be a static, unchanging string; all should vary according to the input given.
12 18
 
13 19
 # Running the tests
14 20
 
@@ -22,7 +28,7 @@ in your terminal.
22 28
 
23 29
 ## Source
24 30
 
25
-Wikipedia [https://en.wikipedia.org/wiki/For_Want_of_a_Nail](https://en.wikipedia.org/wiki/For_Want_of_a_Nail)
31
+Wikipedia [http://en.wikipedia.org/wiki/For_Want_of_a_Nail](http://en.wikipedia.org/wiki/For_Want_of_a_Nail)
26 32
 
27 33
 ## Submitting Incomplete Solutions
28 34
 

+ 5
- 6
exercises/rail-fence-cipher/README.md Wyświetl plik

@@ -58,21 +58,20 @@ W . . . E . . . C . . . R . . . L . . . T . . . E
58 58
 
59 59
 If you now read along the zig-zag shape you can read the original message.
60 60
 
61
+# Running the tests
61 62
 
62
-
63
-To run the tests:
63
+You can run all the tests for an exercise by entering
64 64
 
65 65
 ```sh
66 66
 $ gradle test
67 67
 ```
68 68
 
69
-For more detailed info about the Java track see the [help page](http://exercism.io/languages/java).
70
-
69
+in your terminal.
71 70
 
72 71
 ## Source
73 72
 
74
-[Wikipedia](https://en.wikipedia.org/wiki/Transposition_cipher#Rail_Fence_cipher)
73
+Wikipedia [https://en.wikipedia.org/wiki/Transposition_cipher#Rail_Fence_cipher](https://en.wikipedia.org/wiki/Transposition_cipher#Rail_Fence_cipher)
75 74
 
76 75
 ## Submitting Incomplete Solutions
76
+
77 77
 It's possible to submit an incomplete solution so you can see how others have completed the exercise.
78
-i

+ 1
- 1
exercises/two-fer/README.md Wyświetl plik

@@ -66,7 +66,7 @@ in your terminal.
66 66
 
67 67
 ## Source
68 68
 
69
-This is an exercise to introduce users to basic programming constructs, just after hello World. [https://en.wikipedia.org/wiki/Two-fer](https://en.wikipedia.org/wiki/Two-fer)
69
+This is an exercise to introduce users to basic programming constructs, just after Hello World. [https://en.wikipedia.org/wiki/Two-fer](https://en.wikipedia.org/wiki/Two-fer)
70 70
 
71 71
 ## Submitting Incomplete Solutions
72 72