Ad
  • Default User Avatar

    Nice Kata! like yhis kind!

  • Default User Avatar

    Funny Kata, get me to play with almost everything about Date&Time in Java, thx!

  • Default User Avatar

    The same for me!

  • Default User Avatar

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

  • Default User Avatar

    🤣🤣🤣🤣
    I like it!!!!!!

  • Default User Avatar

    Hello everybody,

    I got this kind of error:

    -51680708854858326016L should equal -51680708854858323072L
    14472334024676220 should equal 14472334024676221
    83621143489848426496L should equal 83621143489848422977L

    and I can not find how to handle it.
    Any clue, hits ?

    I'm using Python for this kata.

    regards,
    Ben

  • Default User Avatar
  • Default User Avatar

    B/W, I'm using Typescript

  • Default User Avatar

    Because the expected result is an array:
    from the description:

    Initialise

    carpark = [[1, 0, 0, 0, 2],
    [0, 0, 0, 0, 0]]

    Working Out

    You start in the most far right position on level 1
    You have to move Left 4 places to reach the staircase => "L4"
    You then go down one flight of stairs => "D1"
    To escape you have to move Right 4 places => "R4"
    

    Result

    result = ["L4", "D1", "R4"]

    from the testing:
    it("Should pass sample tests", function() {
    let carpark, result
    carpark = [[1, 0, 0, 0, 2],
    [0, 0, 0, 0, 0]];
    result = ["L4", "D1", "R4"];

  • Default User Avatar

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

  • Default User Avatar

    Yopi!!!! I found it!
    it was the function indexOf which was terribly slowing my algorithm...

    Regards,
    BMC

  • Default User Avatar

    many thx for your message!
    I'm trying to refactor ...

    regards,
    bmc

  • Default User Avatar

    Hello,

    My algorithm is taking 2300ms with my environment Windows/firefox for u(60000) but when I try to to submit it sends me timeout error.
    is ther anyway to test my function in the same conditions as here.

    regards,
    bmc