5 kyu
Submatrix
49surtich
Loading description...
Matrix
Algorithms
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.
Fixed again here - please ( review and ) approve.
I don't really understand how it's possible it broke.
@dfhwze
forked the kata a week ago, but that should have forked the fixed version. ( Eight years ago forking was not available - I probably just edited the kata directly, so there should be no wrong version to fork. )thank you :)
no idea how it regressed either :(
There used to be a bug that when forking, you didn't always fork of the latest version. Perhaps that occured again here ..
This is really a great Kata with many different tasks to deal with :
Very satisfying!
matrix :
[ [ 9, -6 ], [ -9, 5 ] ]
how and why???
First sort by the length, next sort by every elements in array.
thanks:D updated
aprroved
Underrated kata that deserves more attention. Nice job @surtich 👍
There's something weird with the random tests.
The 1×1 test expects
[]
instead of[[[ <value> ]]]
.My code should not generate (empty) submatrices for a 1×1 matrix, and does not for hard-coded test cases, but does for the random 1×1 matrix, and the tests of bigger matrices somehow generate submatrices twice - but this is then filtered out and the final answer is the same.
Exactly what code do you use to generate random test matrices? (Just that part, not the actual solution.)
I cannot see anything weird about the inputs with
console.log()
.FIFY.
Your reference solution was calling my code recursively instead of itself.
It's happened to me as well.
it's still happening, could you please fix it if you have editing / mender rights ? also,
chai.config.truncateThreshold= 0
is desperately needed ^^