Ad
  • Custom User Avatar

    OP solved it, closing

  • Custom User Avatar

    TS did it, no question

  • Custom User Avatar

    TS did it, no issue

  • Custom User Avatar

    locationsToFlood.AddRange(Flood(image, locationsToFlood[0], waterLevel, (row, col)));
    Your timeout problem in this row. Don't ask me how I found it

  • Custom User Avatar

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

  • Custom User Avatar

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

  • Custom User Avatar

    Try to attempt few times with initial solution. If you see more than one submarine, it means that previous are pass the tests. Only last one pic not pass. I tried your previous code, and yes, it working in some cases, but not cover all tests. Read again cases in description, maybe you miss something. Add one more module to print YOUR pic AFTER test

  • Custom User Avatar

    Hello everyone! I'm not sure if I'm somehow missing something when I'm doing this problem, but when I run my code that I've written for this problem this weird error occurs where the following happens:

    Firstly, when I run the "test" tests, they work just fine.

    However, when I ru nthe "attempt" tests, 2 things with either occur:

    1. Everything will pass except for igbeardSubmarine. I've noticed that the logs shows the ASCII picture pasted multiple times. The scarecrwFleet test willo just copy the same photo about 5-10 times, while the igbeardSubmarine's log copies 2-3 images with slight subtlies on each image, causing that test to fail.
    2. I get a error because the test took too long. I don't know if this's a valid excuse but I tested all of the tests on my own computer, and came out with an elapsed time of around 40-45 ms so I dunno what's going on there.

    Note, I'm doing this on C#. I don't know if that complicates things but jsut an FYI. I would really appreciate any support right now!

  • Custom User Avatar

    Sorry if I didn't state my question properly. Yea basically I'm asking in what ways could I better optimize my code so that it doesn't end upgoing over the time limit.

  • Custom User Avatar

    I am not sure that got your question. Join names without commas and don't change their order. If you need more perfomance, use stacks and queues instead of lists, use hashset to not repeat coordinates.

  • Custom User Avatar

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

  • Default User Avatar

    Hello, you are so close with the code you have here. The trouble is not large input values. For example, consider what happens with input of 10. The trouble is that your logic is slightly off when the product is not equal to prod. Think about why that is and I think you will see it.

  • Custom User Avatar

    a quine is a program whose the output is the program/code itself.

  • Custom User Avatar

    I'm getting an error on the quine test. All I really want to know is what a quine test is, and what its want me to output. Learning what the code is asking me to do may help me in figuring out how to debug my code.

  • Custom User Avatar

    Closing this one.

  • Loading more items...