Skip to content

Commit c1a0dc0

Browse files
sync exercises (#175)
1 parent 1333d31 commit c1a0dc0

9 files changed

Lines changed: 57 additions & 30 deletions

File tree

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1-
# Description
1+
# Instructions
22

33
Convert a phrase to its acronym.
44

55
Techies love their TLA (Three Letter Acronyms)!
66

7-
Help generate some jargon by writing a program that converts a long name
8-
like Portable Network Graphics to its acronym (PNG).
7+
Help generate some jargon by writing a program that converts a long name like Portable Network Graphics to its acronym (PNG).
8+
9+
Punctuation is handled as follows: hyphens are word separators (like whitespace); all other punctuation can be removed from the input.
10+
11+
For example:
12+
13+
| Input | Output |
14+
| ------------------------- | ------ |
15+
| As Soon As Possible | ASAP |
16+
| Liquid-crystal display | LCD |
17+
| Thank George It's Friday! | TGIF |
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
# Description
1+
# Instructions
22

3-
An [Armstrong number](https://en.wikipedia.org/wiki/Narcissistic_number) is a number that is the sum of its own digits each raised to the power of the number of digits.
3+
An [Armstrong number][armstrong-number] is a number that is the sum of its own digits each raised to the power of the number of digits.
44

55
For example:
66

77
- 9 is an Armstrong number, because `9 = 9^1 = 9`
8-
- 10 is *not* an Armstrong number, because `10 != 1^2 + 0^2 = 1`
8+
- 10 is _not_ an Armstrong number, because `10 != 1^2 + 0^2 = 1`
99
- 153 is an Armstrong number, because: `153 = 1^3 + 5^3 + 3^3 = 1 + 125 + 27 = 153`
10-
- 154 is *not* an Armstrong number, because: `154 != 1^3 + 5^3 + 4^3 = 1 + 125 + 64 = 190`
10+
- 154 is _not_ an Armstrong number, because: `154 != 1^3 + 5^3 + 4^3 = 1 + 125 + 64 = 190`
1111

1212
Write some code to determine whether a number is an Armstrong number.
13+
14+
[armstrong-number]: https://en.wikipedia.org/wiki/Narcissistic_number
Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,45 @@
1-
# This is an auto-generated file. Regular comments will be removed when this
2-
# file is regenerated. Regenerating will not touch any manually added keys,
3-
# so comments can be added in a "comment" key.
1+
# This is an auto-generated file.
2+
#
3+
# Regenerating this file via `configlet sync` will:
4+
# - Recreate every `description` key/value pair
5+
# - Recreate every `reimplements` key/value pair, where they exist in problem-specifications
6+
# - Remove any `include = true` key/value pair (an omitted `include` key implies inclusion)
7+
# - Preserve any other key/value pair
8+
#
9+
# As user-added comments (using the # character) will be removed when this file
10+
# is regenerated, comments can be added via a `comment` key.
411

512
[c1ed103c-258d-45b2-be73-d8c6d9580c7b]
613
description = "Zero is an Armstrong number"
714

815
[579e8f03-9659-4b85-a1a2-d64350f6b17a]
9-
description = "Single digit numbers are Armstrong numbers"
16+
description = "Single-digit numbers are Armstrong numbers"
1017

1118
[2d6db9dc-5bf8-4976-a90b-b2c2b9feba60]
12-
description = "There are no 2 digit Armstrong numbers"
19+
description = "There are no two-digit Armstrong numbers"
1320

1421
[509c087f-e327-4113-a7d2-26a4e9d18283]
15-
description = "Three digit number that is an Armstrong number"
22+
description = "Three-digit number that is an Armstrong number"
1623

1724
[7154547d-c2ce-468d-b214-4cb953b870cf]
18-
description = "Three digit number that is not an Armstrong number"
25+
description = "Three-digit number that is not an Armstrong number"
1926

2027
[6bac5b7b-42e9-4ecb-a8b0-4832229aa103]
21-
description = "Four digit number that is an Armstrong number"
28+
description = "Four-digit number that is an Armstrong number"
2229

2330
[eed4b331-af80-45b5-a80b-19c9ea444b2e]
24-
description = "Four digit number that is not an Armstrong number"
31+
description = "Four-digit number that is not an Armstrong number"
2532

2633
[f971ced7-8d68-4758-aea1-d4194900b864]
27-
description = "Seven digit number that is an Armstrong number"
34+
description = "Seven-digit number that is an Armstrong number"
2835

2936
[7ee45d52-5d35-4fbd-b6f1-5c8cd8a67f18]
30-
description = "Seven digit number that is not an Armstrong number"
37+
description = "Seven-digit number that is not an Armstrong number"
38+
39+
[5ee2fdf8-334e-4a46-bb8d-e5c19c02c148]
40+
description = "Armstrong number containing seven zeroes"
41+
include = false
42+
43+
[12ffbf10-307a-434e-b4ad-c925680e1dd4]
44+
description = "The largest and last Armstrong number"
45+
include = false
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
# Instructions
22

3-
The classical introductory exercise. Just say "Hello, World!".
3+
The classical introductory exercise.
4+
Just say "Hello, World!".
45

5-
["Hello, World!"](http://en.wikipedia.org/wiki/%22Hello,_world!%22_program) is
6-
the traditional first program for beginning programming in a new language
7-
or environment.
6+
["Hello, World!"][hello-world] is the traditional first program for beginning programming in a new language or environment.
87

98
The objectives are simple:
109

11-
- Write a function that returns the string "Hello, World!".
10+
- Modify the provided code so that it produces the string "Hello, World!".
1211
- Run the test suite and make sure that it succeeds.
1312
- Submit your solution and check it at the website.
1413

1514
If everything goes well, you will be ready to fetch your first real exercise.
15+
16+
[hello-world]: https://en.wikipedia.org/wiki/%22Hello,_world!%22_program

exercises/practice/hello-world/.meta/config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
".meta/example.factor"
1818
]
1919
},
20-
"blurb": "The classical introductory exercise. Just say \"Hello, World!\"",
20+
"blurb": "Exercism's classic introductory exercise. Just say \"Hello, World!\".",
2121
"source": "This is an exercise to introduce users to using Exercism",
22-
"source_url": "http://en.wikipedia.org/wiki/%22Hello,_world!%22_program"
22+
"source_url": "https://en.wikipedia.org/wiki/%22Hello,_world!%22_program"
2323
}

exercises/practice/isogram/.docs/instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Determine if a word or phrase is an isogram.
44

5-
An isogram (also known as a "nonpattern word") is a word or phrase without a repeating letter, however spaces and hyphens are allowed to appear multiple times.
5+
An isogram (also known as a "non-pattern word") is a word or phrase without a repeating letter, however spaces and hyphens are allowed to appear multiple times.
66

77
Examples of isograms:
88

@@ -11,4 +11,4 @@ Examples of isograms:
1111
- downstream
1212
- six-year-old
1313

14-
The word *isograms*, however, is not an isogram, because the s repeats.
14+
The word _isograms_, however, is not an isogram, because the s repeats.

exercises/practice/leap/.meta/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
},
1919
"blurb": "Determine whether a given year is a leap year.",
2020
"source": "CodeRanch Cattle Drive, Assignment 3",
21-
"source_url": "https://coderanch.com/t/718816/Leap"
21+
"source_url": "https://web.archive.org/web/20240907033714/https://coderanch.com/t/718816/Leap"
2222
}

exercises/practice/raindrops/.meta/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
".meta/example.factor"
1414
]
1515
},
16-
"blurb": "Convert a number to a string, the content of which depends on the number's factors.",
16+
"blurb": "Convert a number into its corresponding raindrop sounds - Pling, Plang and Plong.",
1717
"source": "A variation on FizzBuzz, a famous technical interview question that is intended to weed out potential candidates. That question is itself derived from Fizz Buzz, a popular children's game for teaching division.",
1818
"source_url": "https://en.wikipedia.org/wiki/Fizz_buzz"
1919
}

exercises/practice/reverse-string/.meta/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
},
1616
"blurb": "Reverse a given string.",
1717
"source": "Introductory challenge to reverse an input string",
18-
"source_url": "https://medium.freecodecamp.org/how-to-reverse-a-string-in-javascript-in-3-different-ways-75e4763c68cb"
18+
"source_url": "https://www.freecodecamp.org/news/how-to-reverse-a-string-in-javascript-in-3-different-ways-75e4763c68cb"
1919
}

0 commit comments

Comments
 (0)