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.
Also, this would be a duplicate to many existing elementary DP (more specifically, coin change) katas, with a slight twist at the end.
Issues from the "harder" version of this kata also applies to this kata:
Tests are unacceptable: the description says
but the actual tests only contains at most 2 trays, which becomes a much easier problem.
Also, this would be a duplicate to many existing elementary DP (more specifically, coin change) katas, with a slight twist at the end.
Anyways, even the tests are unacceptable: the description says
but the actual tests only contains at most 2 trays, which becomes a much easier problem.
Similarly, random tests is a complete joke: It only tests
[4, 10]
against a multiple of 10, which has a trivial solution.There is a dick move: random tests are secretly testing runtime each run and asserts that it does not exceed a certain value, with no indication this is being tested:
This kata needs random tests.
the idea is that since there is nothing else, you cant tell if its a - or a . (because you have nothing to compare to) so by default you need to assume its a .
https://www.codewars.com/kata/5300901726d12b80e8000498
Yours is actually a simpler version of FizzBuzz (so the dificulty should be ajusted)
(btw you can search for keywords in the kata pages to look for puzzles that might be similar to yours or to find more FizzBuzz puzzles)
It's just a simple recursion
btw what algorithm is your brute force solution based? (it performs really really well compared with my brute force solution for the previous kata, mine took minutes yours takes 100ms to solve for 1000 trays)
added
This comment is hidden because it contains spoiler information about the solution
Needs Random Tests.
Tests should be revamped to prevent brute force solutions directly copied from the last one