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.
The complete test data
The expectation ' ' My answer
π€―Nicely made - but I am lost somewhere!
Well - in short, my code "works" for the visible tests and not for the random ones - of course π
Given a matrix as:
If I understood the rules correctly, the
1
placed third in first row represents that the person indexed 0 and the person indexed 2 know each other in a friendly manner. Because index 0 is always LOL, index 3 should also be LOL.However - the result is Dota...
Where am I wrong??
Honestly, I cant get everything right at the first go; well of course. Thanks a lot for the link, I am very sorry that I missed it somewhere before.
Well, I published this challenge because I just unlocked the ability to do so - I am happy to receive help so fast π
When I was writing the challenge, it asked me to upload my solution along. So.... Should I just copy that to the "Test Cases" and perform a random test against my solution?
Oh that! It's more of a typo than an issue in my algorithm. Dont worry, you are not supposed to use any mind reading magic.
Thanks for pointing that out - and poof - it's fixed.
By the way, it does seem like you read my mind and figured out what I expected in turn - kudos!
Probably the worst solution ever, because of method local inner classes π.
This comment is hidden because it contains spoiler information about the solution
I wrote some good amount of mess to solve it... As far as I understand my own code (which I forgot right after writing) the algorithm seems to be working just fine! Well the results are of cource not correct π. Here are a few tests
If anyone has a clue, please help me out π.
This comment is hidden because it contains spoiler information about the solution