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 doesn't prevent calling it on non-tuples. Otherwise, this is essentially the right idea (and will work on the version of TS that's available on Codewars).
Unfortunately, it seems like several old kata are incompatible with >2.x and they are uninterested in updating until they are updated:
https://github.com/codewars/runner/issues/188
(Edit:) I added a note in the description that it should reject non-tuple inputs.
This comment is hidden because it contains spoiler information about the solution
You fix the bug, but there is a new bug.
I like the way this solves the problem. Switch/case is such a bulky syntax, and this cleans that up nicely.
I added an error message if "this" is not bound.
I ran into this, but it being opaque, I wrote it off as probably having done something wrong myself ( I was doing wrong plenty ). In a later attempt it was not a problem - because I accidentally was in the correct scope.
Should be simple enough to fix by passing user a function bound to the correct context. ( Famous last words .. )
This comment is hidden because it contains spoiler information about the solution
Thanks! This should be fixed
This comment is hidden because it contains spoiler information about the solution
The string check should be separated to provide clearer assertion messages.
Probably should increase the number of random tests, my semi-bruteforce solution managed to pass with enough attempts.
I'm having more success with a greedy approach, so nevermind I guess.
Am I incorrect in assuming Bron–Kerbosch algorithm should work here? More likely my implmentation is incorrect, no?
@Talrendis Haha, nice one xD
haha, around 600 tests are fine and 100 are wrong for my solution.
I use kinda greedy algorithm.
I dont think bruteforce will pass...
Can anybody give me a hint? Because im really excited about the kata.
The description is short and clear, however the task is non trivial for me.
And, of course, my favourite graph theory <3
So really looking forward to solving this, but I just dunno how :(
Anyways, awesome kata!
Loading more items...