Ad
  • Custom User Avatar

    A few things:

    • Your "random" tests which loop through inputs from 0 to 100 (and 0 to -100) are not random - please refer to the docs for details on how to properly write random tests: https://docs.codewars.com/authoring/guidelines/submission-tests/#random-tests
    • Your reference solution uses conditional statements - it's best not to author Kata where you aren't able to code up a "passing" solution beforehand
    • "please contribute this kata to not allow forbidden operators" - we have a #help-author channel on our Discord server dedicated to helping Kata authors polish their Kata to working standard, before publishing the Kata into Beta
    • In general, artificial restrictions such as forbidding certain operators and keywords are a bad idea for Kata anyway due to the ease of circumventing them no matter how you design the anti-cheat
  • Custom User Avatar

    Without disabling sin, cos, and tan this kata is meaningless. Moreover, there're already several katas about reimplementing these functions or calculating the sum of a Taylor series, so it lacks novelty as well.