Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
lol where is the vote button for painful :)
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));
}
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.
This comment is hidden because it contains spoiler information about the solution