Coding Games and Programming Challenges to Code Better
Send your feedback or ask for help here!
Created by @yhuberla,validated by @DeanTheMachine,@TBali and @Drunkey.
If you have any issues, feel free to ping them.
Coding Games and Programming Challenges to Code Better
Send your feedback or ask for help here!
Created by @yhuberla,validated by @DeanTheMachine,@TBali and @Drunkey.
If you have any issues, feel free to ping them.
Wow that’s goes crazy. very tricky and sharp mind
Can anyone give me the test case for “Chess - Anastasia’s mate” from the validator test cases?
I pass all tests except this one. No clue, where I went wrong.
Sent it to you via private message.
How could in case 4
|Ju|
|ST|
±-+
Letter J will go to position 0 ,0 when started from position 0 , 1. Letter J went to left ? How ? We could go only diagonaly left or right
The input description mentions:
The character s representing the grain of sand followed by its initial position p above the box
When J is added, consider it being added above the box:
01
-1: J
0: | u|
1: |ST|
2: +--+
Hope this helps! ![]()
thank You very much Harry.B
this puzzle is not easy, rather medium.
Note : if you struggle with the case “Pop culture”, consider that it contains ‘x’ that you maybe use as the empty case like in the example…
I encountered a thinking trap when solving the problem. The sand appeared from the top of the box, not in the 0th row of the box. In fact, there is a hidden row above the box.
In the validators case, I failed both the Single Pile and Fibo, but I passed the normal testcases. Can I have the validator’s case so I can figure out why?
It’s better not to give out validators directly.
“Single Pile” and “Fibo” (Validator 3 and Validator 5) are the only cases where w < h, so you may check first whether your code handles such a situation correctly.
figured it out, thanks!