Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
OP solved it, closing
TS did it, no question
TS did it, no issue
locationsToFlood.AddRange(Flood(image, locationsToFlood[0], waterLevel, (row, col)));
Your timeout problem in this row. Don't ask me how I found it
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
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
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:
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!
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.
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.
This comment is hidden because it contains spoiler information about the solution
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.
a quine is a program whose the output is the program/code itself.
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.
Closing this one.
Loading more items...