Ad
  • Custom User Avatar

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

  • Custom User Avatar

    Need save a path in initial order

  • Custom User Avatar

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

  • Custom User Avatar

    I agree. Instruction is stupid

  • Custom 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

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

  • Custom 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

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

  • Custom 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