My code for Bingo! puzzle successfully passes all testcases, except the simplest one (1 Player). I double checked it manually and it seems that the testcase result for the first line is wrong - it should be 56, not 54.
There is an easy was to check this - the expected “answer” is 54. 54th number is 1, which is in the top left corner of the card (so middle square does not matter).
Also, numbers 89 and 69 from the first row are drawn after the number 1. Same goes for numbers 72, 37 and 25 from the first column. Therefore, number 1 (drawn as 54th) cannot be the solution.
Thank you! I totally overlooked the word “diagonal”. The bingo outside US is totally different - I will contribute the non-US bingo puzzle today
I saw that a lot of users solved the problem, but also with the fact that only one of 131 cases failed. Shouldn’t there be more diagonal cases, statistically?
I think there is still something wrong with this puzzle. In fact when i print the ticket’s numbers, this is what i get:
1 67 89 69 48
2 65 38 85 28
7 29 0 54 22
3 80 10 75 58
5 35 49 87 27
You can view the test case inputs in the IDE - the numbers aren’t missing. If they are missing when you print then there is something wrong in your code (either when reading or printing).
Can you check the 5 players test case. Exactly the (Line 2 : The amount of numbers that need to be called before a bingo card has a full house (all numbers filled).)
I checked, and don’t get 83, it always went to 88