7 kyu
The Lazy Startup Office
1,230 of 2,165Cleop
Loading description...
Arrays
Matrix
Fundamentals
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
This comment has been hidden.
This comment has been hidden.
for javaScript random tests appears STDERR: assertSimilar is deprecated, use assertDeepEquals; for all tests
C# issue: currently function expects (int[,] input), while actually it should be (string[][] input). For 7kyus this might cause issues.
Ruby 3.0 should be enabled, see this to learn how to do it
Enabled in this fork
The method takes in a multidimensional array but the test cases are for jagged arrays tests/Fixture.cs(13,83): error CS1503: Argument 1: cannot convert from 'string[][]' to 'int[,]' C#
For me the basic tests all pass, the random tests all fail. While the basic tests expect a zigzac pattern, the random tests tell me they expect simply a flattened array.
name the language you're talking about please
Ruby
Checked and fixed ruby
Thanks!
In the description the output doesn't match the red line. Please update
Fixed
Python: uses
text.epxect()
and an internalcheckEqual()
function to check, instead of usingtest.assert_equals()
already posted below. ;)
Expected output in the description is wrong, as pointed out by Ankit-rana 3 years ago (see below)
Fixed
This comment has been hidden.
Fixed
This comment has been hidden.
Fixed
This comment has been hidden.
Because your function is returning
None
, try returning some list.I do not know how this kata is Object-oriented at all
How is this object oriented programming and can anybody give any tips on how to solve this I am totally stuck
Function parameter should be string[][], not int[,]
Nobody has fixed this issue yet fix it please
Please fix problem raised by Ankit-rana below.
Is anyone else running into issues where the "random" tests at the end are wrong when running the ruby solution?
I know for the c# version, the random test seemed to use rows of different lengths. I had written my original code to use a fixed length because the test said that all rows would be the same, and when I changed my code to allow for varying row lengths, it passed.
Just did the Ruby, seemed fine.
This comment has been hidden.
Python test cases compare that the CONTENTS of the output are the same, but does not check the ORDER.
Fixed
Can't see the picture and the output array makes me confused.
The example: 1st row start from the 1st column. 2nd row start from the 2nd column. 3rd row start from the 3rd column.
4th row start from the ... 3rd column? Not back to 1st or revert to 2nd? So if there has 5th row also start from 3rd column?
I am confused and need some help.
The proper expected output of the given example[["Stefan", "Raj", "Marie"],["Alexa", "Amy", "Edward"],["Liz", "Claire", "Juan"],["Dee", "Luke", "Katie"]] should be: ["Stefan","Raj","Marie","Edward","Amy","Alexa","Liz","Claire","Juan","Katie","Luke","Dee"].
Fixed
Hey, please fix the expected output in instruction. it is confusing.
["Stefan", "Raj", "Marie", "Amy", "Edward", "Alexa", "Juan", "Liz", "Claire", "Katie", "Dee", "Luke"]
it should be
["Stefan","Raj","Marie","Edward","Amy","Alexa","Liz","Claire","Juan","Elle","Luke","Dee"]
Fixed
C#-Translation kumited.
Ruby translation submitted, if you wish to approve it :)
Down below, some quick feed.
This comment has been hidden.
Fun and interesting! Funny thing about your example is, my son Stefan works as a software engineer, and I'm pretty sure he has had a colleague named Raj. Thanks for the kata!