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.
That's an invalid input, and you've been told what to do with that:
Not a kata issue.
For C there is a test with count == 0, but the instruction was clear "the array can't be empty".
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?
Did you ever read the description?
No clue what you're talking about. Good luck with this kata.
You have two source solutions concentrations and one target concentration. You need to calculate amounts to mix to obtain solution with target concentration. Amounts are integer numbers simplified to lowest possible terms, so instead of answer like (100, 50) you should provide (2, 1).
Can you explain this? I have no clue what we are supposed to do.
Fixed. Thanks!
None
.