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.
non-decreseasing order sounds better, than increasing order with possible duplicates. Maybe you could change that to make the description clearer
the constraints should be way bigger for a 4 kyu
That's generally a very bad idea. Tests for all translations should use equals with delta (say,
1e-3
): that will make it compatible with existing solutions, but also will get rid of the usual problems when working with floating-point numbers.In my opinion, tests like this should use an epsilon value to check the result. This would reflect actual real world usage, especially when computing geometric values. Storing the rounded result in a variable makes no sense at all.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
add dynamic programming tag imo
This comment is hidden because it contains spoiler information about the solution
reference solution sometimes returns
No decreasing sequence
for the longest increasing subsequence method, and sometimes returnsNo increasing sequence
for the longest decreasing subsequence method.Kata should specify which letters are vowels. It should not be assumed that the vowels include/exclude
y
.int above 20
my solution seems better than the 'should' value.
Python:
The function name in the initial solution setup still uses
camelCase
:count_specMult
should becount_spec_mult
I optimised from passing 30 test cases to 200 test cases in python and am now running out of ideas for optimization. Is it supposed to be more optimised or is the random test case is in infinite loop causing timeout?
This comment is hidden because it contains spoiler information about the solution
JS fork
mocha/chai
assertions +lodash
for randomnessLoading more items...