Ad
  • Custom User Avatar

    Not possible, since any such change would invalidate current accepted solutions, and currently no solutions have been invalidated.

  • Custom User Avatar

    I did printed the input on the console, and even when I think my solution is complete, I get that's what tests are for and I might overlooked something, but I'm pretty sure something is not working well, is it possible that something has changed in the tests that broke things?

  • Custom User Avatar
  • Custom User Avatar

    Mention the language when reporting an issue, please.

  • Custom User Avatar

    Boards containing one or more zeroes are considered to be invalid solutions. =)

    [492856913,
    176423459,
    385791726,
    753284261,
    941635387,
    628179045,
    453678900,
    519348172,
    234567898]

    Expected: true
    Actual: false

  • Custom User Avatar

    Hi,

    no, with 500+ other completions in PHP, the tests aren't broken. When you click "TEST", your solution is run against more tests than the ones you see in the sample tests part. And those tests are randomized. Meaning your only problem is that your code doesn't handle some specific case you didn't think about. Just print the inputs to the console, then debug your code.

    Cheers

    PS:

  • Custom User Avatar

    With my PHP solution, when I click on the "Test" button, everything passes, I included more tests just to be sure. But when I click in "Attempt" not even one test passes. I checked, because the first check I do in my code is check for zeroes, and yes, when clicking on "Test" everything works, if there is a zero in the matrix, the function will return false, but when "Attempt" if the test array has zeroes the interpreter or whatever it is, will ignore the conditionals and return true every time, if I just cheat and return false, the test will say the expected value is true, so, seems like that test is completely broken.