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.
Suggestion not specific enough, closing
Python 3.6.0. When executing, I get this error: "Time: 6504ms Exit Code: 137
I received no data received to STDOUT or STDERR. "
What does it mean?
Running simple tests passes. I added my simple test. Then I removed my simple test, but the message remained. Only time changes.
What does it mean?
Does it work correctly for me, and you don’t have it, or what? Where to dig?
Sorry, but you're asking something that's been asked and answered several times before, and I referred you to the first one of those not marked as spoiler, I won't copy and paste the same answer all over the place, you should have read the posts already here before asking it again.
You can not answer. Understood by reading the same question below. I believe that the condition of the problem does not reveal exactly this moment. It is necessary to include the solution of these tests for the example in the condition of the problem.
Go down, read Daotar's post.
This comment is hidden because it contains spoiler information about the solution
X
denotes the column of the endpoint, or the horizontal point if you will.Y
denotes the row of the endpoint, or the vertical point if you will.With coordinates
(0, 0)
it should be obvious why the minimum path is1
, since you're starting and ending at the same position with the value1
.Here is the minimum path of the grid given before, when the endpoint is in
(0, 1)
:Why with coordinates (0,0) the value of the minimum path is equal to 1, y = 0 is the very first column. And with the coordinates (0, 1), y = 1 and this is also the first column of the array. As far as I understood from the task, the counting of rows and columns of the array begins with 0.And the first test example with coordinates (0,0) confirms this.
Tell us how you count the columns and rows?
x = 0 - this is what row (please give the value of the row)?
y = 1 - this is which column (give the value of the column)?
You always start at the upper left corner. Then, each nested array represents a row in the 2D-grid.
In the test-case you're referencing you're given the following grid:
The end coordinate is
x = 0, y = 1
, which is where the4
is in the grid. Therefore the minimum path will be1 + 4 = 5
.From the kata's task: "Coordinates are marked as x horizontally and y vertically."
Then in the test task does not correctly consider "Assert.AreEqual (5, MinPathSquare.MinPath (smallSquare, 0, 1));".
Starting from the condition of the problem x = 0 and y= 1.
Number of rows = x = 1;
Number of columns = and y = 2;
Therefore, the minimum path can be calculated only horizontally and it is equal to 3. But you consider the minimum vertical path that you have equal to 5. That is, you think as though two rows of the array are given, but x = 0, and this is one line.
I think that the answer should be 3.
According to the test example "Assert.AreEqual (5, MinPathSquare.MinPath (smallSquare, 4, 2));" I think that the answer is 21, not 24, if x = 4, and y = 2
Please explain how you calculated the minimum path.
Missing item with a value of 159
C#. I think that should be added to the condition of the Kata more examples to check.
С#. May I know the parameters MultiplePairWithNestingTests and SinglePairWithNestingTests tests? Standard tests are performed.
Can I learn the parameters of the tests №7 and №11? Thank you.
I agree completely. I would like to know the parameter by tests 11 and 7. According to my tests, everything works correctly.