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.
This comment is hidden because it contains spoiler information about the solution
Is there any specific reason to encrypt the solution into one line of magic symbols? :)
I find hard to understand what's going on there.
Thanks for the explanation! It is really useful for me to see practice from another perspecitve.
It was a joke, of course nobody will ask a change for the kata.
What's the point to make katas at all? I personally find it useful to practice and therefore get better at real projects, load brain with various tasks, but still practicing disciplines of clean code. Because in real projects maintainability is extremely important.
One week later... Manager comes and says: "I want it to give 4 points for a win, -1 point for a loss, and 1 point for a tie".
At the friday evening they come again and say: "Can you please make it that we give an additional point for every 10:0 wins".
A month later... Manager comes and says: "I want it to work for hockey, basketball and baseball" ;-)
I would make a harakiry on the first request.
One week later... Manager comes and says: "I want it to work for hockey, basketball and baseball" ;-)
We can't find it because tests are failing on random arrays. I beleave they are generated randomly each time I submit result. Here is the screenshot: https://ibb.co/f9cWq33
Here are some examples:
With input: [31,30,-5,-38,48,46,38,-35,49,22,-8,22,-27,-17,12,34,-31]
Test Passed: Value == 202
Log
With input: [-9,47,1,15,-21,32,-25,36,49,-11,15,25,13,15,5,34,-22,38,-22,40,36,-19,6,-5,-21,-45,-10,-19,36,22,-1,-37,1,-25,-35,-31,49]
Expected: 300, instead got: 215
Log
With input: [50,-16,-15,-24,-5,22]
Expected: 50, instead got: 34
Log
With input: [-26,0,-46,-3,-12,37,-46,48,14,42,-35,-49,8,-41]
Test Passed: Value == 104
Log
With input: [32,50,-5,-32]
Test Passed: Value == 82
Log
With input: [2,-18,19,-20,25,-22,-7,-25,-39,31,-38,-6,10,-15,31,-10,48,3,-45,-19,-23,4,32,27,-29,4,36,44,9,46,-27,-42,-42,-22,15,43,-26,21,37,27,9,-42,9,-36,-4,-18,27,-33,-18,-21,45,34,4,37,7,2,26,22,-47,-15,49,-20,37,27,-13,-29,24,-18,-14]
Expected: 238, instead got: 205
Is it the thing I am missing?
[50,-16,-15,-24,-5,22] // Expected: 50, instead got: 34
It was in the section of random tests.
This comment is hidden because it contains spoiler information about the solution
This is a good idea! Thanks for the suggestion :)
Well, the given test case passes but a lot of the acceptance ones do not and I have no idea what's the input for the function that causes failures :(
Thanks. This is acutally very cool. Sometimes I regred that missed Math too much at school XD
Thank you! Very useful.
Do we have a math Guru who has managed to solve this through an equation? :)
This comment is hidden because it contains spoiler information about the solution
Loading more items...