Ad
  • Custom User Avatar

    As a beginner-level kata plus the title having the switch keyword, the intro to switch-case usage is perfectly valid here. Though the usage of a lookup table or dictionary would be the ideal way of solving, users can refer to solution panel to view other solutions. OTOH, there exists other 8kyu katas which introduce techniques mentioned above, including what you've mentioned.