Ad
  • Custom User Avatar

    lol where is the vote button for painful :)

  • Custom User Avatar

    Hi @oznavigator I still think it is wrong.

    This test is passing to me. so I am considering your note. I am almost sure there is something missing. Have you solved this on the php language? maybe a test case converted to php is wrong?

    public function testOnlyOneMiniWin() {
    $this->assertEquals("Winner!", bingo([["BMJN",44]], 1));
    }

  • Custom User Avatar

    It seems to be wrong to me too in PHP Language. All my tests pass and I submit it generate some random series and the expectation seems wrong. I've added a log to see what it was actually passing to understand why it was failing.

    win: 2
    ticket: [["BP",86],["BC",66],["POYGYR",89],["PZ",68],["GPHB",71],["QN",83],["QUOMXQ",79],["ODMMKL",69],["QTI",84]]

    My function is returning Loser because there is just 1 mini-win on this serie and it is expecting 2. The only mini-win on this is ["ODMMKL",69]

    Failed asserting that two strings are equal.
    Expected: 'Winner!'
    Actual : 'Loser!'

    Please let me know if someone else is having same problem.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution