Ad
  • Default User Avatar

    Figured it out. For those passing most tests but having trouble with a few here's a hint: Check that what's happening when you compare the "enteredCode" and "currentCode" params are what you're expecting to happen.

  • Default User Avatar

    Cannot pass 3 tests. Not sure why, seems like there is some kind of error with the tests?

    ✔ Test Passed: Value == true
    Log
    CurrentDate
    September 5, 2014
    2014-10-05T00:00:00.000Z
    1412467200000

    ExpirationDate
    September 25, 2014
    2014-10-25T00:00:00.000Z
    1414195200000

    ✘ Expected: false, instead got: true
    Log
    CurrentDate
    September 5, 2014
    2014-10-05T00:00:00.000Z
    1412467200000

    ExpirationDate
    September 25, 2014
    2014-10-25T00:00:00.000Z
    1414195200000

    ✘ Expected: false, instead got: true
    Log
    CurrentDate
    September 5, 2014
    2014-10-05T00:00:00.000Z
    1412467200000

    ExpirationDate
    September 25, 2014
    2014-10-25T00:00:00.000Z
    1414195200000

    ✘ Expected: false, instead got: true
    Log
    CurrentDate
    March 5, 1998
    1998-04-05T00:00:00.000Z
    891734400000

    ExpirationDate
    March 25, 1998
    1998-04-25T00:00:00.000Z
    893462400000

  • Default User Avatar

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

  • Default User Avatar

    No idea, you're the sensei. But if I come up with anything I'll drop you a line. ;)

  • Default User Avatar

    Loved it just as much as part 1. It was definitely more challenging too. Part 3 in the works? :p

  • Default User Avatar

    I ran into the same issue. LOL
    I think the row/col was switched in part 1 as well because I was able to pass part 1 using row/col where col is x and row is y but now it seems opposite. I have to do col/row if i assume col is x and row is y. I'm probably just confusing myself at this point.

  • Default User Avatar

    Awesome kata! I had a lot of fun doing this one. It was challenging but definitely doable once you thought it through.

  • Default User Avatar

    Very nice. I don't know why I came up with such a complicated solution myself. This is very elegant and easier to read.

  • Default User Avatar

    Awesome, you guys rock! Can't believe I had made such a silly mistake. I was seriously ripping my hair out trying to figure it out. :D

  • Default User Avatar

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

  • Default User Avatar

    So easy and concise, can't believe I hadn't thought of it.

  • Default User Avatar

    I would say the first one because you have less values to compare against, 5 as oppose to 10.