It's a poorly designed kata in my opinion, I wouldn't waste your time on it
That answer is the whole point of the Kata. It's intentional. It's a test of analytical thinking.
This is a solution to the tests.
Please do not confuse specification with implementation - optimisations are always allowed.
CW kata ( almost always ) test outcomes, not the way to get there.
Loading collection data...
It's a poorly designed kata in my opinion, I wouldn't waste your time on it
That answer is the whole point of the Kata. It's intentional. It's a test of analytical thinking.
This is a solution to the tests.
Please do not confuse specification with implementation - optimisations are always allowed.
CW kata ( almost always ) test outcomes, not the way to get there.