Skip to content

Commit 9802b2d

Browse files
committed
Make "Transpose Sentence" live
1 parent ba9833f commit 9802b2d

File tree

2 files changed

+26
-21
lines changed

2 files changed

+26
-21
lines changed

config/data/holes.toml

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3570,30 +3570,34 @@ Then I'm sure she sells seashore shells.
35703570

35713571
['Transpose Sentence']
35723572
category = 'Transform'
3573-
experiment = 1245
3574-
synopsis = 'Print the transposed representation of input sentence.'
3575-
preamble = '''<p>Given a list of sentences, print the transposed representation of each input.
3573+
released = 2024-07-25
3574+
synopsis = 'Print the transposed representation of a sentence.'
3575+
preamble = '''
3576+
<p>
3577+
Given a list of sentences, print the transposed representation of each
3578+
input.
35763579
3577-
<p>Consider the sentence: <b>all work and no play makes jack a dull boy.</b>'
3580+
<p>Consider the sentence: <b>all work and no play makes jack a dull boy.</b>
35783581
35793582
<p>To transpose it, first write each word on a separate line:
35803583
3581-
<pre>
3582-
₁₂₃₄₅
3583-
↓↓↓↓↓
3584-
all
3585-
work
3586-
and
3587-
no
3588-
play
3589-
makes
3590-
jack
3591-
a
3592-
dull
3593-
boy
3584+
<pre>₁₂₃₄₅
3585+
↓↓↓↓↓
3586+
all
3587+
work
3588+
and
3589+
no
3590+
play
3591+
makes
3592+
jack
3593+
a
3594+
dull
3595+
boy
35943596
</pre>
35953597
3596-
<p>Then read the block of text top to bottom, left to right, inserting a space after the last letter of each column, which yields:
3598+
<p>
3599+
Then read the block of text top to bottom, left to right, inserting a
3600+
space after the last letter of each column, which yields:
35973601
35983602
<p><b>awanpmjadb lonolaauo lrdakcly kyekl s</b>.
35993603
'''

sql/a-schema.sql

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@ CREATE TYPE hole AS ENUM (
5050
'rock-paper-scissors-spock-lizard', 'roman-to-arabic', 'rule-110',
5151
'seven-segment', 'si-units', 'sierpiński-triangle', 'smith-numbers',
5252
'spelling-numbers', 'star-wars-opening-crawl', 'sudoku', 'sudoku-v2',
53-
'ten-pin-bowling', 'time-distance', 'tongue-twisters', 'united-states',
54-
'vampire-numbers', 'van-eck-sequence', 'zeckendorf-representation',
55-
'zodiac-signs', 'γ', 'λ', 'π', 'τ', 'φ', '√2', '𝑒'
53+
'ten-pin-bowling', 'time-distance', 'tongue-twisters',
54+
'transpose-sentence', 'united-states', 'vampire-numbers',
55+
'van-eck-sequence', 'zeckendorf-representation', 'zodiac-signs', 'γ', 'λ',
56+
'π', 'τ', 'φ', '√2', '𝑒'
5657
);
5758

5859
CREATE TYPE idea_category AS ENUM ('cheevo', 'hole', 'lang', 'other');

0 commit comments

Comments
 (0)