Ad
  • Custom User Avatar

    There is a bug in java production test.

    For n = 4 and greater even numbers properly result is:
    [1, 1, 1, 1]
    [0, 0, 0, 1]
    [1, 0, 0, 1]
    [1, 1, 1, 1]

    your test result:
    [1, 1, 1, 1]
    [0, 0, 0, 1]
    [1, .1., 0, 1]
    [1, 1, 1, 1]

    You are adding a one '1' too much, and it is necessary to remove last 1 from snake.