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.
Guassian elimination is a duplicate to many existing katas, for example:
Value checking is done via
test.expect
directly, which is unacceptable because it gives no feedback.The fixed tests also uses exact checking, which is unacceptable too. It's not mentioned anywhere that these test cases are strictly in integer domain.
This comment is hidden because it contains spoiler information about the solution
So is numpy allowed or not?
derp why did I not doo that it was a boolean check
Yeah, but that's not really an issue, though.
Ruby translation submitted, if you want to approve it :)
Thanks to you for considering my opinion :)
You are right. I added more random and some edge test cases. Thanks for the feedback.
I would recommend to only start with katas with sample test cases; if the need arises, resubmit after you have added a few strategical
print
statements to get how your code is doing.Should have many more test cases, including edge and random cases: let me know if you might appreciate a hand in that.
May I suggest many more tests, with edge test cases and more random situations?
Being somewhat new to programming, I can't even figure out what could be wrong with my solution when there aaren't any test cases shown.
Just felt the need to comment. Maybe somebody could write a post about what to do when your code fails..for example, how to go about figuring out what could be wrong.
I DO want to learn.
Python translation kumited
It works, since there is a space between the last word and the exclamation mark in the test cases.
But yes, otherwise it would not work. The test cases should be adjusted if he wanted to prevent this.
Loading more items...