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.
All languages should have the edge case of
n = 1
added (Certain languages have built-in range functions with astep
parameter and will not work whenstep
> theend
parameter)Lua translation!
In C
teams
is already initialized with zeros in all tests. Since it's not documented, there should be tests where it's not initialized.IMHO current constraints makes it 6kyu.
At 7kyu brute-force solutions should be accepted.
Groovy Translation
This comment is hidden because it contains spoiler information about the solution
You need to test for the case when n is the divisor and 2n+1 is the bound and 2n is the solution. I passed the test using a for loop but I would have failed this test so I got a false positive.
Relational databases assume that the order of rows in the resulting set doesn't matter, BUT in this exercise different rows order leads to unacceptable solution. It looks like we need a specific order clause to solve this misconception
This comment is hidden because it contains spoiler information about the solution
One random test Random tests
expected 'Not Balanced' to equal 'Balanced' is not passing. Idk what to do. please someone look into my code.
Whats the take on using Itertools in rust? it's not part of the rust native library, but a lot of solutions are implementing it to make their solutions more functional. Is it okay to use external crates or should we rely only on the native library?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Below Powershell 7.2 answer should work. Returns the correct answer locally, but returns 0 on here.
This has a performance tag, but O(n^2) solutions pass in Python. Is that intended?
Loading more items...