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.
u may cal the all arrangements, but some arrangements are written the same.
in the case(1100 , &^|), the arrangemnt &|^ and |&^ are written the same as(( 1 & 1 ) ^ ( 0 | 0 )).
this may result in extra cnts.
!
Maybe you're misinterpreting the logs, IDK. The result for the first 4x4 matrix should be
['League of Legends', 'Dota 2', 'League of Legends', 'League of Legends']
(according to my solution).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!
This makes no sense. Either
BasePrime.factorize(4)
should result in1 * 3 + 1 * 1
to follow the same pattern, or all the other test cases should be changed to get rid of the"+ 1 * 1"
part and have a correct factorization:Also, this behavior is not even explained anywhere - the author wrote a wrong algorithm and expects everybody to read his mind to know how to solve this.
This comment is hidden because it contains spoiler information about the solution
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