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:ok, poke at me here once you finished to rewrite the tests
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
Houston, we have a problem...
You're using numpy in your test suite. If I use the module forbidder, I forbid the whole module, so can you rewrite all the tests without it?
about the module forbidder, I know it's not yet bulletproof (not even sure it's actually possible to make it so... :/ ). I'd need to work on it again (especially with 3.8 in the wild: I believe it won't work for this version). I'll give it a shot.
Here's an example: https://www.codewars.com/kata/5ebae674014091001729a9d7
or you can read this thread: https://github.com/codewars/codewars.com/issues/1527
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
Relevent external libraries are not properly disabled: https://www.codewars.com/kata/reviews/5f396fcb92a0ec00016e4ceb/groups/5f3b2978dc2d32000115e43d
... plz think about those who don't have a math training => you should define what that means (or at least provide a link to the definition?)
@BabiRuiva The permission error logs are wrong, even when I try to import
scipy.linalg.cholesky
or justnumpy.linalg
logs shows that I am importingnumpy.linalg.cholesky
.Which specific libaries are forbidden? (and you should mention this in description) Because I am not sure whether my solution is allowed.
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
Loading more items...