5 kyu
Insane Matrix Sum
29 of 33daspreuße
Loading description...
Linear Algebra
Combinatorics
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.
Lua translation!
Approved by someone.
There is an error here, when n=20 and k=20 the result should be 131282408400 but in the test case it says 282407483 (Python)
you should return the answer mod 1e9+7
javascript translation
approved by someone
Both
n
andk
can start at0
instead of1
.n = 0 means the null matrix. The determinant of the null matrix is 0. If k is also 0, the determinant of the null matrix to the power of zero is the same as 0^0. I think this does not make sense at all.
No, let's leave out
0^0
please :)This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
The
n, k
constraints are described twice. If this is on purpose, ignore this suggestion to remove either one of these.I see you're doing this in all the kata's in this series. It's the format.