-
Notifications
You must be signed in to change notification settings - Fork 2
piglatin
bradendubois edited this page Oct 7, 2021
·
9 revisions
ID: piglatin
Difficulty: 2.2
CPU Time: 3 seconds
Memory: 1024 MB
If the word starts with a vowel, just add "yay" to the end and output it; otherwise, create a queue, and until a vowel is reached, enqueue the letters leading up the first vowel. Once a vowel is reached begin outputting the letters instead of queueing them. After the word is finished, output all those previously-queued letters, then output "ay".