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
Hello there!
Can you see my code? What's wrong with rounding my result?
This is what I have:
Expected: [8.6667, 6.6667]
Actual: [8.6667, 6.6667]
I can't see the difference, but my answer is 'incorrect' and tests are not passed.
C++ Translation
C++ Translation
But there will still be cases where the string is longer than 140 characers (including whitespaces) and the hastag shorter than 140 characters - I think this should be added as a test case.
There are no need to round
offset
s since it only involved in the calculation not being results and increasing the deviationAnd you cannot make sure that someone calculate in this way
Which is different with
Though this is not suitable for
[,,1]: [0.333, 0.667, 1]
in the desc, but you cannot make sure that deviation wouldnt make different by roundingoffset
sTunrns out it was my previous solution modified the input that case the
not false
problemWhich means you should write tests in this way
And another case
It's very annoying in the random test and no one can figure out what are different easily.
Just do
result.should.deep.equal(solve)
is enoughI'll check it a bit later
yes, for now it should return
false
I mean that maybe it would be better to merge such offsets, e.g.
can be merged into
but I'm still confused of cases from my previous reply;
that's why I want this to return
false
Um.. what do you mean by merge? This is the case to return false right?
Ofc you solution returned an object
or i would see
expected {...} to equal false
I can't resolve some cases. For example:
How to merge matched
left
property correctly? I have no the only answer.an empty object should be fixed for now and return
false
OK...
Loading more items...