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.
(Python) Apparently the test for specification "If the coefficient of a term is zero, the term should not be included" is not being performed. My first solution did not handle these cases and I passed every test.
Ouput for
expand("(r+0)^203")
given by my first solution:Oh I thought there would be a way to forbid only a module function. But I've just started rewriting every matrix manipulation functions without using sci/numpy.
@XRFXLP thanks for letting me know, I never thought it would work like that. After I finish rewriting the testcases I will start writing some useful math in the description
Is it still doing that? I tried to reproduce this right now, but got the right log
The idea was to block only
linalg,cholesky
, because the real idea here was to "teach" users how do algorithm works. If there are other libraries that are being blocked, I'm not aware of it (Actually thereload
has a really bad blocking system only because I couldn't THE way to forbid modules)I will add a link to it, for what I've seen there's no way to write latex equations in Codewars' markdown syntax, what is quite sad.
And since you are here, I've searched a lot on how to forbid modules, and the only things I was able to find were discourses where you mentioned your kata forbidder. Would it be too much asking you to teach me how to do it?
Yeah.. I'm having a lot of trouble trying to figure out how to do this properly. This is my first kata and I have never had this "reverse experience", it's actually becoming pretty hard to implement a simple kata haha. But anyways, I hope I can solve these issues quickly
Ok, it should work now! I had some problems while trying to republish, I hope the changes were actually commited. Could you try again to see if problems persist? I checked the new random tests with
numpy.linalg.cholesky
and after a lot of tries, I got no error.I was unable to find a better way to block this bypass, so I will leave it like this for now and start solving some katas that Blind4Basics contributed to so I can learn how to properly solve this issue
Oh, I actually didn't know this reload thing was possible. I was trying to find a way to disable some modules and found out that Blind4Basics has some kind of code to do that, but I was unable to find it. I will spend some time now thinking about how to correctly do this module forbidder
About the random tests, it was actually working, the problem you were getting was because of diagonal dominance, so some eigenvalues were getting too close to 0. I already corrected it and now I'm revising it to make sure this doesn't happen anymore.
Ohh, I was only partially wrong then.
Anyways, this was a really nice kata, I feel that I've learned a lot. A kata so simple and yet so complex. Thanks for teaching me what those -long output means and for creating this awesome experience in Codewars. After reading below, I just hope this doesn't get underranked by the "ZED gang", it's so sad and ridiculous that this kata supremacists exist
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution