Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
You are free to print during tests, in that sense they are not hidden.
Well you don't need break after return and the
()
in the ternary operatorThe best way to find out is to run the code in your IDE and debug it locally, step by step.
https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution#how-do-i-post-to-a-kata-discourse
{ 1, 1, 11, 2, 3 } => 6