Ad
  • Custom User Avatar

    Maybe im dumb... but I pass more than 100 tests, but everytime I fail some randoms... like that

    For example some random tests results... ->

    Log
    {

    island:[
        '..8.$$...1$$4$.....25$4.',
        '$..$....2....1.$$5.$$..0',
        '.91.2..4..$..2...$$3.0..',
        '.......9.......$....$..0',
        '$......$$....7..$.......'
    ],
    

    coordinates: [ 1, 1 ],
    steps: 2
    }

    expected 10 to equal 9


    or like that

    Log
    {

    island:[
        '...2',
        '.5..',
        '....', 
        '....' 
    ],
    

    coordinates: [ 2, 2 ],
    steps: 2
    }

    expected 5 to equal +0


    And every try the same, ridiculus bad tests, or Im crazy or I dont know.

    In that 2 examples. Doing as my self...

    1 - Start in position 1,1 with 2 steps... 1 step going down, other going right -> 10 food... the test expect 9???

    2 - Position 2,2...with 2 steps... 1 step going up, other left... nothing more... 5 food... the test expect 0???

    I could show more and more random tests fail examples.

    Maybe Im so tired and I understand nothing. If somebody could help or tell me what are failing? Or simply somebody could fix that? Ty

  • Custom User Avatar

    C#: method name should be PascalCase (Please refer to implementation of backward compatibility here )

  • Default User Avatar

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

  • Custom User Avatar

    Description should be language-agnostic

  • Custom User Avatar

    Description should be language-agnostic

  • Custom User Avatar

    Description should be lanugage-agnostic

  • Custom User Avatar

    CLang:

    Could someone explain this? What I misunderstood?

    Failed lastSurvivors("zxyphjtvyiikdo")
    Actual characters: "zxyphjtvyjkdo"
    Expected characters: "adhloptvx"

  • Custom User Avatar

    I can't seem to understand how 60 as input should return 60 ?

    the solutions are :

    1 minute 0 seconds => 10

    and

    0 minutes 60 seconds => 60

    we have same consecutives and same length so it should return the first solution which is 10 right ?

    please correct me if I'm wrong

  • Custom User Avatar

    I see the similar question below, but don't see the solution.

    Please tell me why my result is wrong?

    for vKnightLeft = 1, vKnightRight = 1 and field:
    ["$->11111","11111<-P"]
    : expected [ '1$->1111', '1111<-P1' ] to deeply equal [ '11$->111', '111<-P11' ]

  • Custom User Avatar

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

  • Custom User Avatar
  • Custom User Avatar
    let expected = mySolution(test.slice());
    let userResult = mySolution(test.slice());
    

    You sure? :P

  • Custom User Avatar

    You have a nice (elaborate) story, that's why it's even more important that you include a "Task" section with the exact requirements (without storyline), in a succinct style -> inputs, outputs.

  • Custom User Avatar

    What exacly is a group of letters? Should all elements form a vertical or horizontal line, or should all letters that form a group have at least one vertical or horizontal link to any adjacent letter?

    A group of letters is defined as characters that are adjacent to each other either vertically or horizontally.

  • Custom User Avatar

    In example 2, expected value is "bza", but all sort orders should be ascending. Number of arrows would indicate 'a' comes before "bz" ( points are equal ).

  • Loading more items...