Around and Around We Go
Jump to navigation
Jump to search
This problem asks us to print out the words to a round in a certain way such that the two voices line up properly. It is 100% about formatting output correctly.
- store the start times for each syllable of each voice in their own queue.
- While printing, pop whichever syllable comes next, or both, if required. Push underscores to any lines which are not printed
Note: be sure to add enough underscores to fill up time for long syllables (the third print condition in the problem statement)