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.
I have 2 different solutions with 27...
Most people will probably start from that approach, including me. That's exactly why the character threshold is set right below its length. If no minor "local" edit will shorten that approach further, you'll need to take a detour.
This comment is hidden because it contains spoiler information about the solution
f(n) = (n/2) mod m
is ambiguous because it is not amodular division
, it is a division by 2 in the integers and then a modulo.valueVerificationArray
(that should be in Pythonvalue_verification_array
) are always the same...Been thinking about a formula like this since when i created the questions.
Well finally i choosed to change it.
Thanks, and sorry the later response.
Since the function takes the parameter
n
andk
in that order, i suggest changing the formula to :Noting :
We define :
thanks!
Very enjoyable, hinges between 6-7 kyu IMO.
done 1.
This kata was retired due to low user satisfaction rating. If you plan to have a new go at it, ask advise on Discord first how to write a proper description.
To be honest for x, x, x I had no idea what is better to put except for 1, 1.
For other cases I think I'll put condition in description that concentrations are from 1 ot 100%.
Random tests are honestly generated by random function :) But I got your point.
Soem edge cases are not tested properly:
x, x, x
has more than one correct solution and it's not spec'd which should ne returned. .x, 0, x
and0, x, x
are not tested, but can trip up some solutions.0, 0, 0
,[x, y, 0]
and0, 0, x
can trip up some solutions.To me it's not clear what
a
andb
are supposed to mean. The description should mention something likea
times first +b
times second results in a ratio ofz
, if that is what is requested.It's a common (?) chemistry formula for mixing solutions. TBH the task was easy to understand for me, but maybe it's just because I already know the problem?
Loading more items...