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.
Nice one. I see I couldn't have used more complex code for the solution ;). Looks like I should go to bed rather ;). 3 AM.
Hi ;-)
Description said:
So, there are only TWO items. Thus you can not take one items twice.
Only four situations:
Take item1 and item2
Take item1
Take item2
Take nothing
is this clear? ;-)
I'm not sure how to spoiler just the solution, but today I tried the same code as before, without changing it. It returned a syntax error this time. After "fixing" the error it accepted code which actually does contain a syntax error. Should be able to find my solution in the submissions now.
perhaps you should optimize your solution. You can post it there and mark it as spoiler and gladly we will help you
I'm getting the same problem. Pass 4900+ tests, then browser crashes. Can't submit solution after passing as "Attempt" never updates.
resloved.
Thanks for noticing! updated :)
Thanks!
;-)
If you modified the original array at last time, please re-submit.
I made a little change to the user more tolerant (but
not to modify the original array
is still a good habit)Please retry and let me know what's happening
I have a check, but not see the
nil
@nza , A question: Do you modified the original array?
OK, CALLING @narayanswa30663 ;-)
Hi, you can see the testcases of other solved katas - so you only have to open "Show Kata Test Cases" for a solved kata and you surely can find examples for random tests;-)!
By the way, congrats to your first kata;-)!