Ad
  • Custom User Avatar

    Suggestion not specific enough, closing

  • Default User Avatar

    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?

  • Custom User Avatar

    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.

  • Default User Avatar

    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.

  • Custom User Avatar

    Go down, read Daotar's post.

  • Default User Avatar

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

  • Custom User Avatar

    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 is 1, since you're starting and ending at the same position with the value 1.

    Here is the minimum path of the grid given before, when the endpoint is in (0, 1):

    [1,_,_],
    [4,_,_],
    [_,_,_]
    
  • Default User Avatar

    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)?

  • Custom User Avatar

    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:

    [1,2,3],
    [4,8,2],
    [1,5,3]
    

    The end coordinate is x = 0, y = 1, which is where the 4 is in the grid. Therefore the minimum path will be 1 + 4 = 5.

  • Default User Avatar

    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.

  • Default User Avatar

    Missing item with a value of 159

  • Default User Avatar

    C#. I think that should be added to the condition of the Kata more examples to check.

  • Default User Avatar

    С#. May I know the parameters MultiplePairWithNestingTests and SinglePairWithNestingTests tests? Standard tests are performed.

  • Default User Avatar

    Can I learn the parameters of the tests №7 and №11? Thank you.

  • Default User Avatar

    I agree completely. I would like to know the parameter by tests 11 and 7. According to my tests, everything works correctly.