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.
copy pasters i guess
This comment is hidden because it contains spoiler information about the solution
bro how did you even think of this
This solution is insanely crazy, I was looking to get something of this style, but couldn't figure it out and went for a much more long winded approach.
this solution burns my brain
Hi
Why is it suited for python 3.10 ? what's the feature of it involved in the refinement of the code ?
Thanks
This is crazy smart
This comment is hidden because it contains spoiler information about the solution
technically correct, but i feel like the kata wanted us to find the gcd and not import a library to do it for us
wow...simple, fast and doesnt involve any nonsense... This is the best solution
Damn, this is elegant. It's not particularly efficient, worst case O(n^2) time and O(n) space, but the way you build the interval array is very pretty indeed.
NOT best practice (collections as default arguments are the source of all evil).
But damn. it's clever
I was also confused at the beginning but there is no error in this test.
For example, your two solutions have a common "!" (the first cell in the 3rd row). You can safely open that cell and continue according to the result. When you open it, the number you get will eliminate some of those possibilities.
I am in the same position and I understand that the result must be ?.
Solution 1: ( "!" are the positions that one can safelly call game.open. "X" upper case is the first guess.
x 2 3 x 2
2 ! x x 2
! x 3 3 2
! ! ! 2 x
! ! X 2 1
In this case we found one possible solution.
Solution 2:
x 2 3 x 2
2 x ! x 2
! ! 3 3 2
? ! X 2 x
? ? ! 2 1
One mine in any of the ? will also be a solution, so we have 3 more possibilities.
As we end with 4 possible solutions the return should be "?"
if a==29:map[(28,0)]=open(28,0) # Because one of the tests is wrong!!!
=> lol! No, no tests are wrong, it's just your code... ;)
Loading more items...