Skip to content

Commit

Permalink
configlet fmt for approach configs (#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
BNAndras authored Feb 1, 2024
1 parent 285b3dd commit 47f76d1
Show file tree
Hide file tree
Showing 13 changed files with 96 additions and 44 deletions.
13 changes: 9 additions & 4 deletions exercises/practice/bob/.approaches/config.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
{
"introduction": {
"authors": ["bobahop"],
"contributors": []
"authors": [
"bobahop"
]
},
"approaches": [
{
"uuid": "51d03dc6-c93e-4d49-88b5-89165f00c1d8",
"slug": "if-expressions",
"title": "if expressions",
"blurb": "Use if expressions to return the answer.",
"authors": ["bobahop"]
"authors": [
"bobahop"
]
},
{
"uuid": "1cd79ba8-6786-4ae4-a248-0f89a1daa8a8",
"slug": "answer-list",
"title": "Answer List",
"blurb": "Index into a List to return the answer.",
"authors": ["bobahop"]
"authors": [
"bobahop"
]
}
]
}
9 changes: 6 additions & 3 deletions exercises/practice/darts/.approaches/config.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
{
"introduction": {
"authors": ["bobahop"],
"contributors": []
"authors": [
"bobahop"
]
},
"approaches": [
{
"uuid": "40396c67-efdd-4031-bbfd-12e92e7448c8",
"slug": "hypot-for-radius",
"title": "hypot for radius",
"blurb": "Use the hypot function to get the radius of the throw.",
"authors": ["bobahop"]
"authors": [
"bobahop"
]
}
]
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
{
"introduction": {
"authors": ["bobahop"],
"contributors": []
"authors": [
"bobahop"
]
},
"approaches": [
{
"uuid": "862a595e-613f-4172-87f1-95c04e0051de",
"slug": "formula",
"title": "Formula",
"blurb": "Use a formula to calculate a solution.",
"authors": ["bobahop"]
"authors": [
"bobahop"
]
}
]
}
9 changes: 6 additions & 3 deletions exercises/practice/gigasecond/.approaches/config.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
{
"introduction": {
"authors": ["bobahop"],
"contributors": []
"authors": [
"bobahop"
]
},
"approaches": [
{
"uuid": "54bff868-f84e-481e-ae00-bed8e960445e",
"slug": "secondary-constructor-atstartofday",
"title": "Secondary constructor with atStartOfDay",
"blurb": "Use a secondary constructor with atStartOfDay to return the answer.",
"authors": ["bobahop"]
"authors": [
"bobahop"
]
}
]
}
8 changes: 6 additions & 2 deletions exercises/practice/grains/.approaches/config.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
{
"introduction": {
"authors": ["bobahop"]
"authors": [
"bobahop"
]
},
"approaches": [
{
"uuid": "4c786343-22f8-493f-8cb8-9c313f81ab59",
"slug": "bit-shifting",
"title": "Bit-shifting",
"blurb": "Use bit-shifting to raise 2 by a specified power.",
"authors": ["bobahop"]
"authors": [
"bobahop"
]
}
]
}
9 changes: 6 additions & 3 deletions exercises/practice/hamming/.approaches/config.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
{
"introduction": {
"authors": ["bobahop"],
"contributors": []
"authors": [
"bobahop"
]
},
"approaches": [
{
"uuid": "edb06fc9-9d11-4102-af5f-d3d2912b64df",
"slug": "zip-count",
"title": "zip with count",
"blurb": "Use zip with count to iterate to the answer.",
"authors": ["bobahop"]
"authors": [
"bobahop"
]
}
]
}
9 changes: 6 additions & 3 deletions exercises/practice/isbn-verifier/.approaches/config.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
{
"introduction": {
"authors": ["bobahop"],
"contributors": []
"authors": [
"bobahop"
]
},
"approaches": [
{
"uuid": "addeaa3a-174d-45e4-9a50-47711b0bb097",
"slug": "fold-when-let",
"title": "fold, when, and let",
"blurb": "Use fold and when with let to return the answer.",
"authors": ["bobahop"]
"authors": [
"bobahop"
]
}
]
}
21 changes: 15 additions & 6 deletions exercises/practice/leap/.approaches/config.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,45 @@
{
"introduction": {
"authors": ["bobahop"],
"contributors": []
"authors": [
"bobahop"
]
},
"approaches": [
{
"uuid": "21da8b43-0a72-4991-bfce-c2bc4a51d26b",
"slug": "boolean-chain",
"title": "Boolean chain",
"blurb": "Use a chain of boolean expressions.",
"authors": ["bobahop"]
"authors": [
"bobahop"
]
},
{
"uuid": "03485733-b2e8-4be0-8a70-4a2d38ec2541",
"slug": "ternary-expression",
"title": "Ternary expression",
"blurb": "Use a ternary expression.",
"authors": ["bobahop"]
"authors": [
"bobahop"
]
},
{
"uuid": "a5e8b72c-4061-4aa9-b8f1-0c4e0b577f94",
"slug": "plusdays",
"title": "plusDays method",
"blurb": "Use the plusDays method.",
"authors": ["bobahop"]
"authors": [
"bobahop"
]
},
{
"uuid": "16c4ab8a-ae22-43db-911d-e8ee33b98cd8",
"slug": "built-in-method",
"title": "Built-in method",
"blurb": "Use the built-in method.",
"authors": ["bobahop"]
"authors": [
"bobahop"
]
}
]
}
9 changes: 6 additions & 3 deletions exercises/practice/pig-latin/.approaches/config.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
{
"introduction": {
"authors": ["bobahop"],
"contributors": []
"authors": [
"bobahop"
]
},
"approaches": [
{
"uuid": "8fc23555-9445-452e-9982-c09b9716b6dc",
"slug": "hashset-lookup",
"title": "HashSet lookup",
"blurb": "Look up values in HashSets to return the answer.",
"authors": ["bobahop"]
"authors": [
"bobahop"
]
}
]
}
13 changes: 9 additions & 4 deletions exercises/practice/raindrops/.approaches/config.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
{
"introduction": {
"authors": ["bobahop"],
"contributors": []
"authors": [
"bobahop"
]
},
"approaches": [
{
"uuid": "d0608dd0-9320-46c2-af9e-e54b9d0fc354",
"slug": "buildstring",
"title": "buildString",
"blurb": "Use buildString to return the result.",
"authors": ["bobahop"]
"authors": [
"bobahop"
]
},
{
"uuid": "7d435fdf-db16-4c89-b56f-fe71a68c1d1b",
"slug": "fold-on-list",
"title": "fold on a List",
"blurb": "Iterate a List with fold to return the result.",
"authors": ["bobahop"]
"authors": [
"bobahop"
]
}
]
}
9 changes: 6 additions & 3 deletions exercises/practice/roman-numerals/.approaches/config.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
{
"introduction": {
"authors": ["bobahop"],
"contributors": []
"authors": [
"bobahop"
]
},
"approaches": [
{
"uuid": "96ce2094-949d-4576-a2d1-ab8a76081225",
"slug": "fold-repeat",
"title": "fold with repeat",
"blurb": "Use fold with repeat to return the answer.",
"authors": ["bobahop"]
"authors": [
"bobahop"
]
}
]
}
13 changes: 9 additions & 4 deletions exercises/practice/scrabble-score/.approaches/config.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
{
"introduction": {
"authors": ["bobahop"],
"contributors": []
"authors": [
"bobahop"
]
},
"approaches": [
{
"uuid": "02863caf-f7d0-45bd-87f8-408e0030be55",
"slug": "map",
"title": "map",
"blurb": "Use map lookups to return the answer.",
"authors": ["bobahop"]
"authors": [
"bobahop"
]
},
{
"uuid": "5481eb78-3c12-458f-b88c-3cf7632856e1",
"slug": "when",
"title": "when",
"blurb": "Use when lookups to return the answer.",
"authors": ["bobahop"]
"authors": [
"bobahop"
]
}
]
}
9 changes: 6 additions & 3 deletions exercises/practice/word-count/.approaches/config.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
{
"introduction": {
"authors": ["bobahop"],
"contributors": []
"authors": [
"bobahop"
]
},
"approaches": [
{
"uuid": "310ac3a8-5ef7-47c6-a2c9-5efc98a17d4a",
"slug": "findall-groupingby-eachcount",
"title": "findAll with groupingBy and eachCount",
"blurb": "Use findAll with groupingBy and eachCount to return the answer.",
"authors": ["bobahop"]
"authors": [
"bobahop"
]
}
]
}

0 comments on commit 47f76d1

Please sign in to comment.