Raindrops is a slightly more complex version of the FizzBuzz challenge, a classic interview question.
Your task is to convert a number into its corresponding raindrop sounds.
If a given number:
"Plong"."PlingPlang"."34".In this exercise you will implement a procedure which is meant to allocate the string it returns. Deallocating the string is the responsibility of the prodecure's caller.
// The procedure will be called like that:
converted := convert(3)
// ...
// and eventually the caller will delete the string
delete(converted)
Sign up to Exercism to learn and master Odin with 73 exercises, and real human mentoring, all for free.
Explore solutions using functional pipelines, matrix multiplication, a precalculated table-based solutions using a macro, an Object Oriented approach, some impressive use of both Python and TCL, and an enterprise edition.