Skip to content

Commit 0c8ef68

Browse files
committed
Make "Catalan Numbers" live
1 parent 5f1db80 commit 0c8ef68

File tree

2 files changed

+27
-30
lines changed

2 files changed

+27
-30
lines changed

config/holes.toml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -213,30 +213,27 @@ preamble = '''
213213
and execute each program in turn.
214214
'''
215215

216-
['Catalan’s Constant']
217-
category = 'Mathematics'
218-
links = [
219-
{ name = 'OEIS A006752', url = '//oeis.org/A006752' },
220-
{ name = 'Wikipedia', url = "//www.wikipedia.org/wiki/Catalan's_constant" },
221-
]
222-
preamble = '''
223-
<p>Print Catalan’s constant to the first 1,000 decimal places.
224-
'''
225-
226216
['Catalan Numbers']
227217
category = 'Sequence'
228-
experiment = -1
229218
links = [
230219
{ name = 'OEIS A000108', url = '//oeis.org/A000108' },
231220
{ name = 'Rosetta Code', url = '//rosettacode.org/wiki/Catalan_numbers' },
232221
{ name = 'Wikipedia', url = '//www.wikipedia.org/wiki/Catalan_number' },
233222
]
234223
preamble = '''
235-
<p>
236-
The nth Catalan number can be expressed as C(n) = binomial(2n,n)/(n+1).
224+
<p>The nth Catalan number can be expressed as C(n) = binomial(2n,n)/(n+1).
237225
238-
<p>
239-
Print the first 100 Catalan numbers, each on their own line.
226+
<p>Print the first 100 Catalan numbers, each on their own line.
227+
'''
228+
229+
['Catalan’s Constant']
230+
category = 'Mathematics'
231+
links = [
232+
{ name = 'OEIS A006752', url = '//oeis.org/A006752' },
233+
{ name = 'Wikipedia', url = "//www.wikipedia.org/wiki/Catalan's_constant" },
234+
]
235+
preamble = '''
236+
<p>Print Catalan’s constant to the first 1,000 decimal places.
240237
'''
241238

242239
['Christmas Trees']

db/a-schema.sql

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,21 @@ CREATE TYPE connection AS ENUM (
1919

2020
CREATE TYPE hole AS ENUM (
2121
'12-days-of-christmas', '99-bottles-of-beer', 'abundant-numbers',
22-
'arabic-to-roman', 'arrows', 'brainfuck', 'catalans-constant',
23-
'christmas-trees', 'css-colors', 'cubes', 'diamonds', 'divisors',
24-
'emirp-numbers', 'emojify', 'evil-numbers', 'fibonacci', 'fizz-buzz',
25-
'foo-fizz-buzz-bar', 'fractions', 'happy-numbers', 'happy-numbers-long',
26-
'intersection', 'isbn', 'kolakoski-constant', 'kolakoski-sequence',
27-
'leap-years', 'levenshtein-distance', 'leyland-numbers', 'look-and-say',
28-
'lucky-tickets', 'morse-decoder', 'morse-encoder', 'musical-chords',
29-
'niven-numbers', 'number-spiral', 'odious-numbers', 'ordinal-numbers',
30-
'pangram-grep', 'pascals-triangle', 'pernicious-numbers', 'poker',
31-
'prime-numbers', 'prime-numbers-long', 'qr-decoder', 'quine', 'recamán',
32-
'rock-paper-scissors-spock-lizard', 'roman-to-arabic', 'rule-110',
33-
'seven-segment', 'sierpiński-triangle', 'smith-numbers',
34-
'spelling-numbers', 'star-wars-opening-crawl', 'sudoku', 'sudoku-v2',
35-
'ten-pin-bowling', 'tongue-twisters', 'united-states', 'vampire-numbers',
36-
'van-eck-sequence', 'λ', 'π', 'τ', 'φ', '√2', '𝑒'
22+
'arabic-to-roman', 'arrows', 'brainfuck', 'catalan-numbers',
23+
'catalans-constant', 'christmas-trees', 'css-colors', 'cubes', 'diamonds',
24+
'divisors', 'emirp-numbers', 'emojify', 'evil-numbers', 'fibonacci',
25+
'fizz-buzz', 'foo-fizz-buzz-bar', 'fractions', 'happy-numbers',
26+
'happy-numbers-long', 'intersection', 'isbn', 'kolakoski-constant',
27+
'kolakoski-sequence', 'leap-years', 'levenshtein-distance',
28+
'leyland-numbers', 'look-and-say', 'lucky-tickets', 'morse-decoder',
29+
'morse-encoder', 'musical-chords', 'niven-numbers', 'number-spiral',
30+
'odious-numbers', 'ordinal-numbers', 'pangram-grep', 'pascals-triangle',
31+
'pernicious-numbers', 'poker', 'prime-numbers', 'prime-numbers-long',
32+
'qr-decoder', 'quine', 'recamán', 'rock-paper-scissors-spock-lizard',
33+
'roman-to-arabic', 'rule-110', 'seven-segment', 'sierpiński-triangle',
34+
'smith-numbers', 'spelling-numbers', 'star-wars-opening-crawl', 'sudoku',
35+
'sudoku-v2', 'ten-pin-bowling', 'tongue-twisters', 'united-states',
36+
'vampire-numbers', 'van-eck-sequence', 'λ', 'π', 'τ', 'φ', '√2', '𝑒'
3737
);
3838

3939
CREATE TYPE keymap AS ENUM ('default', 'vim');

0 commit comments

Comments
 (0)