Ad
  • Default User Avatar

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

  • Custom User Avatar

    The man is standing on a mountain. While walking N, W , S his latitude changes and by E he'll be entering a cave deep in the mountain for his next Quest.

  • Custom User Avatar

    Because the man was given directions to go from one point to another.
    If he just stays still people will think he hasn't reached his destination.

  • Custom User Avatar

    That path is reductable. You chose a wrong example.

  • Default User Avatar

    Need save a path in initial order

  • Default User Avatar

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

  • Default User Avatar

    I agree. Instruction is stupid

  • Default User Avatar

    I understood that need save the sequence but i don't see it in intstructions.
    And "… a man was given directions to go from one point to another." but " Hence the result path is itself : ["NORTH", "WEST", "SOUTH", "EAST"]."
    Why man need walk around if he comes to the same point?

  • Custom User Avatar
    fit_in(a,b,m,n)
    a,b are the sizes of the 2 squares
    m,n are the sizes of the suitcase
    

    m and n are arguments of your function, why would them be fixed?

  • Default User Avatar

    The length and width of the rectangle are not fixed. Very bad task description

  • Default User Avatar

    Start by looking for the dependence of the first number of the pyramid row on the number of this row.
    If you get this formula, then you will determine the number for the beginning of the cycle, in which you will need to add up all the odd numbers of this series.

  • Custom User Avatar

    Wrong how? In which language? Provide some proof.

  • Default User Avatar

    Thanks! I thought import is automatic. Now all correct.

  • Custom User Avatar

    That looks like you missed some imports

  • Default User Avatar

    Why i get tese errors?

    ./src/main/java/Kata.java:3: error: cannot find symbol
    List index = new ArrayList<>();
    ^
    symbol: class List
    location: class Kata
    ./src/main/java/Kata.java:3: error: cannot find symbol
    List index = new ArrayList<>();
    ^
    symbol: class ArrayList
    location: class Kata
    ./src/main/java/Kata.java:10: error: cannot find symbol
    List nums = new ArrayList<>();
    ^
    symbol: class List
    location: class Kata
    ./src/main/java/Kata.java:10: error: cannot find symbol
    List nums = new ArrayList<>();
    ^
    symbol: class ArrayList
    location: class Kata
    ./src/main/java/Kata.java:15: error: cannot find symbol
    Collections.sort(nums);
    ^
    symbol: variable Collections
    location: class Kata
    5 errors