don't do it in a real life use case. we're only doing it here because we can and that this is a recreational site where solutions run through very simple test cases, you will run into problems and a lot of questions if you do it with less clear constraints in code that people actually depend on
so damn true... haha
At least you practiced switch case XD
he may or may not be, but there are others here who came to learn (like me lol), and may think to use it
don't do it in a real life use case. we're only doing it here because we can and that this is a recreational site where solutions run through very simple test cases, you will run into problems and a lot of questions if you do it with less clear constraints in code that people actually depend on
This comment is hidden because it contains spoiler information about the solution