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.
In Dart, the random test do not use immutable lists as input, as a result if the solution alters the original list, the test will fail.
In my case, since I was removing items from the list, the test expected the "correct" solution to be an empty list
[]
.I believe this is because the expected solution is computed after the actual one has ran.
Ruby 3.0 enabled in this fork
Interesting, but not 7 kyu.
merged, since there's almost nothing to do about that :/
PowerShell fork with upgrading to 7.2 version
F# fork with upgrade from 4.1 to 6.0, can invalidate all solutions due to changes of testing code (74 for now), so please review and approve (katafix helped)
fixed
Swift: although random tests are present, they're actually not called
fix merged
Elixir will print the following warning after running the tests:
I think you meant
when n is the divisor and 2n-1 is the bound and n is the solution
, because your solution fails on exactly that case, not on the written one.In this case, however, each row corresponds to its input, i.e. if the first input values are
divisor = 2, bound = 7
, then the first row of result table must have 6 as ares
value.Sorting a table with just
res
values may validate incorrect solutions sometimes, because despite having different answers for each row, it can actually be sorted as well as the expected table so that they're equal.The solution is to add
divisor
andbound
to the result table, BUT it will invalidate 2K+ solutions which work only with the one column...Apparently that's because PostgreSQL returns the
FLOOR()
result asdouble precision
value, therefore,res
hasdouble precision
type as well.Why does that function works that way, I really dunno, because logically floored number is just the integer part, but at least the question on the error matter can be resolved
hi can you check my answer
Loading more items...