Coding Games and Programming Challenges to Code Better
Send your feedback or ask for help here!
Created by @Lisa-Has-Ideas,validated by @cedricdd,@Stephen_Kondaveti and @aflorido.
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 @Lisa-Has-Ideas,validated by @cedricdd,@Stephen_Kondaveti and @aflorido.
If you have any issues, feel free to ping them.
For validator 10, are all triangles partial?
Yes, they’re all partial
the possible format of validator 10 triangles
Thanks for playing my puzzle.
That validator has three triangles.
I’ll private message you the first two of those triangles.
Let me know if you need more hints/clues than that
There’s always something interesting in your puzzles – either I learn new concepts, or they are very satisfying to solve. I would say this one has both!
Very nice puzzle. Thank you.
this has been quite an exercise . Thanks for the puzzle.
The following validators differ from the puzzle test cases to prevent hard coded solutions. This is why you can have some fails here even if all of the tests provided in the IDE have been successfully passed.
I get this message when posting my solution.
All testcases passed but submitted code fails on 9 and 12. I cant get any error or to see any reason why that isnt work.
Could u give custom testcase or something to prevent this error?
Send me instead your code (in private), I’ll send back what’s wrong.
I got a little issue. In the first test case the borders of the triangle are carved out (e.g. from 3,2 to 3,9) but in test case 4 they are not (e.g. from 8,8 to 22,8). My code is always carving out the borders, so it’s failing test 4
Nvm, I completely missed the part of “toggle” LOL
It is important to indicate in the description of the puzzle that one of the sides of the triangle is a vertical or horizontal line and I absolutely do not understand why this most important detail is not mentioned in the puzzle conditions!
This is an important condition that will not discourage users from solving the problem, for example, when I first read the conditions, I began to go through possible options for triangles in my head and how to build them in a two-dimensional array and realized that it would be very difficult and put this puzzle aside, but after a while I returned, reviewed the tests and assumed that all triangles have a vertical or horizontal side, and the solution to the puzzle after that became obvious.
Try to solve the puzzle, for example, with triangles below, without reading information from the Internet on how to build a line in a raster.
All CodinGame players are encouraged to review puzzles currently pending approval and suggest improvements to ensure they are as clear and detailed as necessary before being approved.
Sorry, I don’t have a time machine to go back in time and make adjustments to the conditions of this puzzle.
That’s why I said “currently pending approval”. So that you won’t face a similar situation for future puzzles.
Three people press the Approve button, after which the task is published, all the blame lies with them and the author, who decided not to indicate the key point in the puzzle.
For some reason you write to me that everyone has the opportunity to moderate the puzzle before the official publication, and now you write that so that I do not encounter a similar problem in the future, I must go and look at all the puzzles, why are you writing this?
I pointed out the shortcoming of a specific puzzle in the topic concerning this puzzle and asked why the author decided not to indicate the key condition.
Just trying to encourage all players including you to help with reviewing puzzles, that’s all, as I’ve seen you’ve posted numerous similar messages under different puzzle threads, and I guess my suggestion may help you a bit. Sorry if you don’t see it that way.
To be fair, the three people who approved may have solved the problem without noticing that all triangles have a horizontal or vertical line. I solved the problem without noticing it.
One other assumption that’s not written in the problem is that none of the triangles are degenerate. That is, none of the triangles have their three points aligned. Knowing this can really cut down on the if/else forest that would otherwise be needed to deal with special cases!
Ugh, I stuck with filling triangle for a week until realise how to do that: draw triangle line by line while moving from one vertex to two others simultaneously.
Luckily all sides are equal and one side is vertical or horizontal. In other case I’ll definitely fail.
If I’d know just a bit more basic theory there no need to invent such hard way.
Thanks for puzzle - it made me mad and curious )