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.
it's a (very slightly modified) duplicate of 21 sticks
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Random tests sometimes give suboptimal fit:
Table at angle
20.839-20.905
degrees can fit 69 sleeves (layers of width1, 4, 7, 9, 9, 9, 9, 9, 7, 4, 1
).Tags:
puzzle-> geometryLevel:
7 kyu-> at least 5 kyuThere is a solution with 26 covers (drawing in progress).
I would like to know if an algorithm has been found that returns ALL valid solutions for long sequences of words (> 20 words).
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
My code still needs to be refactored, but i'm getting time out at the 500 tests all at once. My code seems to work properly finding the answer in less than 17 attempts, but i think testing 500 sequences all at once it's causing the problem. Any hint on how to solve it?
I think there should be at least one testcase with a very big number of shelves, so that solutions that count through would get a TimeOut-Error.
It is obviously an mathematical problem that should be solved mathematically.
On the other side, we would not see all those funny solutions that I really enjoy to read :)
Hello, I am having trouble understanding the parameters.
For the fifth test, the output is supposed to be 'Frank, Tom, Sam'
|[][][][][][]|xxx
| F x S x T /~|||______________/~~
In Java, it's a bad practice to mix the main code with the test branch. As most of the time, test libraries (like JUnit) are scoped to the test level, and the main code won't compile.
A better approach would be to have a separate
Helper
class in the main branch to give match hints. An instance of the Helper class will be initiated in tests and passed as an argument totryToGuess
method.Here is a reference to how it's done on a similar challenge - Guess the number!
May I get some hints here? I am not really getting the way to the solution. Does it envolve more Math functions or how should I approach it?
Loading more items...