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.
Not the best in performance, but was fun writing a recursive solution.
It sure is, yes.
is it not too easy for a 4kyu kata?
Fun Kata, seems easy using higher order functions. 😀
Great job! Even better than my solutions :P
You can read the
execute()
code by creating a file and logging the methodconsole.log(execute.toString())
and then reverse engineer to get the file content.Great Kata! Waiting for the next one!
This comment is hidden because it contains spoiler information about the solution
I am facing the same problem.
Do we have to get the result such that the sum of the array is the largest?
If it is, then the problem is poorly demonstrated.
This comment is hidden because it contains spoiler information about the solution
calc("1"); 1
calc("1 2"); 2
calc("1 2 + 3"); 3
calc("1 0 /"); It is mentioned to assume that there will be no division by zero