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.
Works fine for 2017.
Yeah, pretty stingy !
Indeed, it took me weeks to figure out that empty test cases were causing most of my "Unknown Errors".
I like your solution. It's not the best solution, but it demonstrates that your perspective on the problem evolved as you were working on it. That's why I like it.
Best thing about codewars is, it's so addictive. The moment you say you cannot be any better and it's impossible to solve this/that test case - but then in the next a few minutes you see a GREEN SUBMIT FINAL button in the corner.
Only got 1 Honor after solving this KATA ?????
Yes, indeed!
This KATA harrased me literally, but I am glad that I reached to the next level.
I must say, the testing is very user-friendly. You can't have this amount of mercy in other online coding platforms.
Amazing question, best in 'Beginner' level. Great Job!
If not programming, these 7kyu problems teach us 'read questions properly'
I would say this particular KATA was not about the problem statement but the solution itself. Those who are familiar with object creation will instntly get to know what to change in the code - the rest can beat the head over the question.
In my case, I simply provided factorial which was unable to clear all the test cases. But then I kept a check if n > 8 then return 0; only then it was working. But I see the solutions of all, nobody seems to have that check. What's wrong!
No need to loop through the whole room-list, even using filter you can do what you wanted i.e.
function roomMates( r, f ){
return r.slice((f-1)6,f6).filter(function(x){return x;})
}
I believe in this particular problem, the TEST CASES were empty by default. So if you try to RUN TESTS, it will give you error. It can be confusing for beginners.