Ad
  • Custom User Avatar
  • Default User Avatar

    Thanks a lot !!!

  • Custom User Avatar

    The math module is not disabled, it's just that gcd() was added to the math module in Python 3.5 and the current Kata version is 3.4.3. You should import gcd() from the fractions module instead.

    From the Python 3.5 Notes

    A new gcd() function has been added. The fractions.gcd() function is now deprecated. (Contributed by Mark Dickinson and Serhiy Storchaka in issue 22486.)

  • Default User Avatar

    Well, I was attempting this in python. I just needed the math module for calculating the LCM (through the 'gcd' function in math module).
    I am not very enthusiastic when it comes to pure arithmetic, and since there is a pretty good module already available, I just thought that I would use it.

  • Default User Avatar

    Please which language?
    Why do you need a math module?

  • Default User Avatar

    why can't we import the math module in this kata ?

  • Default User Avatar

    I have been getting the following message for the last 1 hr whenever I try to submit my code:-
    Request Timeout: The server timed out running the request. This may be due to an issue with the backend server. Please try again.
    The test cases all work nicely.
    ??????

  • Default User Avatar

    check thre link all the way down in the description, I doese't exactally samy that some of the values that are in the spectrum should be postite or negative but you can figure it out, it is not wrong that some of the negative values expect a positve output. it is in the algorythm and you also get to read some pseudo code which is very very helpful to passing this kata

  • Default User Avatar

    The test case results are not entered correctly. Fib(-27) expects a positive integer as result, and clearly this is wrong. Kindly correct your test cases before putting up a kata.