Skip to content

Commit 8f55762

Browse files
More work
1 parent 3a0a257 commit 8f55762

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

exercises/baffling-birthdays/canonical-data.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
],
1010
"cases": [
1111
{
12-
"description": "matching birthday",
12+
"description": "shared birthday",
1313
"cases": [
1414
{
1515
"uuid": "f7b3eb26-bcfc-4c1e-a2de-af07afc33f45",
1616
"description": "same year, month, and day",
17-
"property": "matchingBirthday",
17+
"property": "sharedBirthday",
1818
"input": {
1919
"birthdate1": "2000-01-01",
2020
"birthdate2": "2000-01-01"
@@ -24,7 +24,7 @@
2424
{
2525
"uuid": "7193409a-6e16-4bcb-b4cc-9ffe55f79b25",
2626
"description": "same year and month, but different day",
27-
"property": "matchingBirthday",
27+
"property": "sharedBirthday",
2828
"input": {
2929
"birthdate1": "2012-05-09",
3030
"birthdate2": "2012-05-17"
@@ -34,7 +34,7 @@
3434
{
3535
"uuid": "d04db648-121b-4b72-93e8-d7d2dced4495",
3636
"description": "same month and day, but different year",
37-
"property": "matchingBirthday",
37+
"property": "sharedBirthday",
3838
"input": {
3939
"birthdate1": "1999-10-23",
4040
"birthdate2": "1988-10-23"
@@ -44,7 +44,7 @@
4444
{
4545
"uuid": "3c8bd0f0-14c6-4d4c-975a-4c636bfdc233",
4646
"description": "same year, but different month and day",
47-
"property": "matchingBirthday",
47+
"property": "sharedBirthday",
4848
"input": {
4949
"birthdate1": "2007-12-19",
5050
"birthdate2": "2007-04-27"
@@ -54,7 +54,7 @@
5454
{
5555
"uuid": "df5daba6-0879-4480-883c-e855c99cdaa3",
5656
"description": "different year, month, and day",
57-
"property": "matchingBirthday",
57+
"property": "sharedBirthday",
5858
"input": {
5959
"birthdate1": "1997-08-04",
6060
"birthdate2": "1963-11-23"
@@ -113,21 +113,21 @@
113113
]
114114
},
115115
{
116-
"description": "has shared birthdays",
116+
"description": "contains shared birthdays",
117117
"cases": [
118118
{
119119
"uuid": "ade37c87-f41d-4929-962a-286b4d1d048a",
120-
"description": "with match",
121-
"property": "hasSharedBirthday",
120+
"description": "with shared birthday",
121+
"property": "containsSharedBirthday",
122122
"input": {
123123
"birthdates": ["1970-01-19", "1975-06-03", "2003-01-19"]
124124
},
125125
"expected": true
126126
},
127127
{
128128
"uuid": "1d155b33-c6e1-46b9-81fa-09123ae378ea",
129-
"description": "without match",
130-
"property": "hasSharedBirthday",
129+
"description": "without shared birthday",
130+
"property": "containsSharedBirthday",
131131
"input": {
132132
"birthdates": ["1984-04-05", "2000-09-17", "1966-10-12"]
133133
},

exercises/baffling-birthdays/instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ To do this, you need to:
66

77
- Determine if two birthdates have the same month and day.
88
- Generate random birthdates.
9-
- Check if a collection of randomly generated birthdates contains any two with the same birthday.
9+
- Check if a collection of randomly generated birthdates contains at least two with the same birthday.
1010
- Estimate the probability that at least two people in a group share the same birthday for different group sizes.
1111

1212
~~~~exercism/note

exercises/baffling-birthdays/introduction.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
Fresh out of college, you're throwing a huge party to celebrate with friends and family.
44
Over 70 people have shown up, including your mildly eccentric Uncle Ted.
55

6-
In one of his usual antics, he bets you £100 that at least two people in the room share the same birthday.
7-
That sounds ridiculous — there are many more possible birthdays, so you confidently accept.
6+
In one of his usual antics, he bets you £100 that at least two people in the room share their birthdays.
7+
That sounds ridiculous — there are many more possible birthdays than there are guests, so you confidently accept.
88

9-
To your astonishment, after collecting just 32 birthdays, you've already found a match.
9+
To your astonishment, after collecting the birthdays of just 32 guests, you've already found two guests that share the same birthday.
1010
Accepting your loss, you hand Uncle Ted his £100, but something feels off.
1111

1212
The next day, curiosity gets the better of you.

0 commit comments

Comments
 (0)