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 comment is hidden because it contains spoiler information about the solution
Fixed, thanks for poiting this
C#: it says in the description: The order of rooks in the array is random and there will not be any duplicate rooks in the same tile. In the test category TestFromImage2 I get this R:
Aren't there duplicate rooks in tile [5,3]?
This comment is hidden because it contains spoiler information about the solution
I tried OP's code and it does not handle cases where the fish grows to sizes beyond what is mentionned in the description. the confusion about the input is probably due to the tests suite logging the input to the console instead of making it part of the assertion message. i've fixed that and enabled Node 18+. there is already a suggestion about the lack of clarity of the description (it's not clear that we have to deduce a formula from the table)
question answered by PetitLu117
fixed and added better assertion messages
In the description there is a table that describes how a fish grows. But the table ends with fish size 7, so I assumed that growth is limited.
Only the other fishes from the shoal ranges from 0 to 9. You (the growing fish) are not limited in size.
I have not solved this myself so I can only speculate. I suspect that the input fish are limited to single digit ranges but that your own size can grow as large as the food eaten allows. Perhaps there is a pattern with regards to how much you eat and how big you get? Maybe we should consider ourselves a special fish that can gorow past the limits of all other fish? I realize that I am answering with more questions to a question, sorry about that.
C#: How can the expected fish size be 13 if the fish size ranges from 0-9?
Can anybody help me?
to create the dictionary only once, you could write like in the kumite
Thank you, switching to C# 10 solved the problem.
Try switching between C# 10 and C# 12, one of these should work.
I will take a look later why the non-working version is available, it should not.
The solution is wrong, depending on n. I accidentally submitted it.
I can't factor the solution because I get this error message:
"Assert does not contain a definition for 'AreEqual'"
Loading more items...