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.
C++
It can't be both together. If the function only checks if the array is wave sorted, it shouldn't check if it stays the same.
It's even worse: i've added
at the beginning of my function, and still it returns "The vector content should stay the same". So, my function only runs if the check function fails - and still the vector should stay the same?
This problem can be reduced to the set cover problem, which is NP-hard, looking at size of tests I can assume that reference solution uses some king of greedy approach, which do not guaranty optimal solution.
Example A = [3, 8, 8, 6, 7], B = [2, 2, 3, 5, 6], k = 6. My solution is 3. First thief can take from jars 1 and 4 second from 2, third from 3 and 5
Can the password be empty (eg: no 'T' at the end of directions) ? Can
grid
be 1x1 and/or candirections
be empty (thus password would also be empty) ?I'd like to translate the kata and I think these cases could be interesting but I don't know if I should implement them or not. I also think it could be added to the description.
suggested tag:
performance
Description should be language agnostic.
python new test frameworks to be used.
Factor version expects negative answers for some
n
, too (had to changerem
as last word tomod
to pass). + description needs[1,b]
->[1..b]
update for 0.99+.Shell Translation
C++ Translation
python new test frameworks
Perhaps I'm wrong but PHP tests are weird, sometimes my solution works for all tests and sometimes except the samples test, the others are failing... (Even after I submit the solution)
In Rust, the description doesn't say the returned list needs to be in ascending order, but tests fail if it's not.
This comment is hidden because it contains spoiler information about the solution
description should be lanugage-agnostic
Ruby: should have sample and fixed tests where
x = 0
Loading more items...