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.
The point is there are infinite number of solutions.
Each pair x, y that satisfy equation is valid solution:
Example solutions:
x = 1, y = 0
x = 0, y = 0.5
Such system equations is called indeterminate. In that case you should return 'None'
Thanks again for fixing the log.
I SOLVED this kata and it was immensely satisfying.
Definitely was harder than I initially envisioned.
You are right, I now respect elevators :)
Yes, thank you. It seems correct now.
Thanks!
.
FArekkusu is right, the log is matching the next test. The line announcing the test is just after the call to your function. Old translation of mine... I'll correct that (tho, the weirdest part in the story is that it bahaves the exact same way the last time you tried! ;) )
I guess I am confused. Not sure if you are saying I am printing the wrong input to the expected output.
I was saying that something changed as The tests were generating seeming correct expected output.
Now you can see in the above example that the expected output shows that the elevator stops at floor 6.
there are no passengers there.
errrr.... and? The "log" is the input you printed out from inside your code. Nothing weird, here.
Here is a copy and paste:
Up and down
[0, 1, 2, 3, 2, 0] should equal [0, 1, 2, 3, 6, 5, 3, 2, 0]
Log
((), (), (4, 4, 4, 4), (), (2, 2, 2, 2), (), ()) , 2
Are you sure you printed the inputs correctly?
Did something just change?
It appears something is broken in the tests.
For example, for queue: ((3, 3, 3, 3, 3, 3), (), (), (), (), (4, 4, 4, 4, 4, 4), ()) , 5
It says, should equal [0, 1, 2, 3, 6, 5, 3, 2, 0]
Another example: ((3, 3, 3, 3, 3, 3), (), (), (), (), (4, 4, 4, 4, 4, 4), ()) , 5
Says, should equal [0, 3, 5, 4, 0, 3, 5, 4, 0]
I am using Python 3.6
It seems I saw that reported correctly 1 day ago.
It turned out that I had a bug in the parsing code and my algorithm correctly detected the rank of the matrix.
I appreciate the non-insulting parts of the explanation and thank you for taking the time to answer.
Evidently the gauss-jordan algorithm I used did not detect a problem as it returned a properly row reduced matrix.
1 0 | 1
0 1 | 0
I wiil check that.
Thanks.
Okay, if you don't understand how math works, then I'm of no help to you. Good luck.
You lost the bet!
Next time don't bet. I cannot imagine anyone who appreciates such comment.
If the kata said that no varaible can be zero, then it would be clear.
I bet you haven't studied linear algebra. What you have "found" is a parameter which can be any real number:
Loading more items...