Ad
  • Default User Avatar

    whilst true, I find my solution easy to follow, not that I program much.

  • Default User Avatar

    thank you, now passing 4/6 :)

  • Default User Avatar

    Re-run in my ide and the input is only read from as I can print the input, run fill with the input, print input, and input is not changed

  • Default User Avatar

    Hi all,

    a bit stuck with large fill test, [0,0] should be zero however, my solution sets it to 1 because it is not in the surrounded by 1's space from the starting point? sample tests run fine, where am I going wrong?

    testFillLarge(FillTest)
    Log
    java.awt.Point[x=2,y=2]
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0},
    {0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0},
    {0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0},
    {0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0},
    {0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0},
    {0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0},
    {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    arrays first differed at element [0][0]; expected:0 but was:1
    Exception Details
    arrays first differed at element [0][0]; expected:0 but was:1
    at org.junit.Assert.internalArrayEquals(Assert.java:532)
    at org.junit.Assert.assertArrayEquals(Assert.java:283)
    at org.junit.Assert.assertArrayEquals(Assert.java:298)
    at org.junit.Assert.assertEquals(Assert.java:893)
    at FillTest.testFillLarge(FillTest.java:45)
    Caused by: java.lang.AssertionError: expected:<0> but was:<1>
    at org.junit.Assert.fail(Assert.java:88)
    at org.junit.Assert.failNotEquals(Assert.java:834)
    at org.junit.Assert.assertEquals(Assert.java:118)
    at org.junit.Assert.assertEquals(Assert.java:144)
    ... 82 more

    Mines spits out

    [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
    [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
    [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
    [1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1]
    [1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1]
    [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1]
    [1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1]
    [1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1]
    [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
    [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]

  • Default User Avatar

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

  • Default User Avatar

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

  • Default User Avatar

    Stuck, passes initial tests in java, array lengths do not match on attempt :(, no other information given

  • Default User Avatar

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