Ad
  • Custom User Avatar

    (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:

    r^203+0r^202+0r^201+0r^200+0r^199+0r^198+0r^197+0r^196+0r^195+0r^194+0r^193+0r^192+0r^191+0r^190+0r^189+0r^188+0r^187+0r^186+0r^185+0r^184+0r^183+0r^182+0r^181+0r^180+0r^179+0r^178+0r^177+0r^176+0r^175+0r^174+0r^173+0r^172+0r^171+0r^170+0r^169+0r^168+0r^167+0r^166+0r^165+0r^164+0r^163+0r^162+0r^161+0r^160+0r^159+0r^158+0r^157+0r^156+0r^155+0r^154+0r^153+0r^152+0r^151+0r^150+0r^149+0r^148+0r^147+0r^146+0r^145+0r^144+0r^143+0r^142+0r^141+0r^140+0r^139+0r^138+0r^137+0r^136+0r^135+0r^134+0r^133+0r^132+0r^131+0r^130+0r^129+0r^128+0r^127+0r^126+0r^125+0r^124+0r^123+0r^122+0r^121+0r^120+0r^119+0r^118+0r^117+0r^116+0r^115+0r^114+0r^113+0r^112+0r^111+0r^110+0r^109+0r^108+0r^107+0r^106+0r^105+0r^104+0r^103+0r^102+0r^101+0r^100+0r^99+0r^98+0r^97+0r^96+0r^95+0r^94+0r^93+0r^92+0r^91+0r^90+0r^89+0r^88+0r^87+0r^86+0r^85+0r^84+0r^83+0r^82+0r^81+0r^80+0r^79+0r^78+0r^77+0r^76+0r^75+0r^74+0r^73+0r^72+0r^71+0r^70+0r^69+0r^68+0r^67+0r^66+0r^65+0r^64+0r^63+0r^62+0r^61+0r^60+0r^59+0r^58+0r^57+0r^56+0r^55+0r^54+0r^53+0r^52+0r^51+0r^50+0r^49+0r^48+0r^47+0r^46+0r^45+0r^44+0r^43+0r^42+0r^41+0r^40+0r^39+0r^38+0r^37+0r^36+0r^35+0r^34+0r^33+0r^32+0r^31+0r^30+0r^29+0r^28+0r^27+0r^26+0r^25+0r^24+0r^23+0r^22+0r^21+0r^20+0r^19+0r^18+0r^17+0r^16+0r^15+0r^14+0r^13+0r^12+0r^11+0r^10+0r^9+0r^8+0r^7+0r^6+0r^5+0r^4+0r^3+0r^2+0r+0
    
  • Custom User Avatar

    ok, poke at me here once you finished to rewrite the tests

  • Custom User Avatar

    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

  • Custom User Avatar

    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?

  • Custom User Avatar

    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.

  • Custom User Avatar

    what I've seen there's no way to write latex equations in Codewars' markdown syntax

    Here's an example: https://www.codewars.com/kata/5ebae674014091001729a9d7
    or you can read this thread: https://github.com/codewars/codewars.com/issues/1527

  • Custom User Avatar

    Is it still doing that? I tried to reproduce this right now, but got the right log

  • Custom User Avatar

    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 the reload has a really bad blocking system only because I couldn't THE way to forbid modules)

  • Custom User Avatar

    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?

  • Custom User Avatar

    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

  • Custom User Avatar
  • Custom User Avatar

    Matrices that are not positive-definite

    ... 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?)

  • Custom User Avatar

    @BabiRuiva The permission error logs are wrong, even when I try to import scipy.linalg.cholesky or just numpy.linalg logs shows that I am importing numpy.linalg.cholesky.

  • Custom User Avatar

    Which specific libaries are forbidden? (and you should mention this in description) Because I am not sure whether my solution is allowed.

  • Custom User Avatar

    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...