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.
needs more test cases, I was able to pass by returning manually counted number of expected islands
I had a go at it (a very very long one). I was forced to get help from a java-oriented solution using something called Depth-first-search. today is a very sad day for me :(
I think 6kyu is just about right
id rate this a 7kyu
@Eluderei he obviously knew that but didn't know what to map to.
Nope, sorry.
Nope, sorry.
Nope, sorry.
Nope, sorry.
Nope, sorry.
Nope, sorry.
Nope, sorry.
Nope, sorry.
var player1 = [[7,5],[6,8],[6,9],[1,1],[9,4],[2,2],[6,6],[10,5],[6,4],[4,5],[10,3],[3,1],[10,9],[8,3],[3,8]]
var player2 = [[8,10],[9,6]]
Expected: {"player1":[[6,9],[1,1],[9,4],[2,2],[6,6],[10,5],[6,4],[4,5],[10,3],[3,1],[10,9],[8,3],[3,8]],"player2":[]},
instead got: {"player1":[[6,9],[1,1],[9,4],[2,2],[6,6],[10,5],[6,4],[4,5],[10,3],[3,1],[10,9],[8,3],[3,8]],"player2":[[8,10]]}
am I missing something? player2's [8,10] should survive right?
youre expected to optimize your code so that all the tests pass.
I have two versions that dont pass so I'm trying to improve them
issue or not, the wording about where e and f come from is confusing.
LMFAO WELL DONE
ES6 would be slower cause it needs to go through Babel first. So no.
to pass the performance test am I restricted to ES6 ?
hahaha thanks!!
im guessing this solution was made before the test inputs were changed from array to string
oh my god why didnt I do this
Loading more items...