All puzzles › Songwriting
Songwriting Practice Problems
10 puzzles (4 easy, 5 medium, 1 hard), in Python, JavaScript and C++.
Lyrics, rhyme schemes and song structure as puzzles.
The puzzles, easiest first
- Acrostic Initials (Easy): Given the lines of a poem, return the first letter of each line, uppercased and joined together.
- Count Words (Easy): Given a line of text, return how many words it has.
- Do They Rhyme? (Easy): Given two words, return true if they rhyme, which here means they end in the same two letters.
- Verse/Chorus Ratio (Easy): Given a song's section labels, like "verse" and "chorus", return [number of choruses, total sections].
- Alliteration Count (Medium): Given a list of words, return how many words start with the same letter as the word right before them, ignoring case.
- Count Rhyming Pairs (Medium): Given the last word of each line, return how many pairs of lines you can make that rhyme, where rhyming means the same last two letters.
- Longest Line (Medium): Given the lines of a verse, return the INDEX of the line with the most words.
- Rhyme Scheme (Medium): Given the last word of each line, return the rhyme scheme as letters.
- Syllable Estimator (Medium): Given a word, estimate its syllables by counting groups of vowels in a row.
- Find the Chorus (Hard): Given a song's lines, return the line that shows up most often.
Practice another pattern
Or browse by subject
Browse all 676 puzzles