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.
Thanks. I've added test cases for these.
Errr... WHAT!!???!?
And following your logic I marked yours as well even if I do not undertand this logic if yours...
This comment is hidden because it contains spoiler information about the solution
Yes =)
Can also can calculate the sum and product in the for loop as well, improving the runtime by from 3 linear passes over the array down to just one.
@JebPotly you weren't the only one, I too was a bit confused. I consider it to be a part of the exercise though, figuring out what the task on hand actually is.
Anyway, @donaldsebleung: loved the kata! Thanks for providing it :-)
@JebPotly,
You're welcome, glad you enjoyed my Kata that much :D
On another note, if you're up for a challenge, you may also want to try out this Kata of mine (if you haven't done so already).
Cheers,
donaldsebleung
Thanks;-)! Short, but O(n log n)... is easy solvable in O(n).
Ah, yes. Something is wrong :(
Because some code used
if(something==" ")
, in fact0 == " "
returnedtrue
Now changed
==
to===
.Maybe label this as "Issue"?
Another example, side by side:
You have three examples in the description and i think is properly explained. The target of this is to understand what you have to programme before starting.
Regards, TDRS :-)
The * signifies a generator function. The tests don't check if your function is a generator function, which is another issue
Thanks for your suggestion, I've added a check for uniqueness and increased the possible required size.
well, you are right.
I've used the idea of chessboard just to make the description shorter and more immediate without explaining grids.
The board size can be made larger, but once you've found out how to solve the kata, it's the same anyway.
Oh yeah, you're right, I should add that in the description.
Yeah it's a string, meaning the present is empty. Nice cover
Loading more items...