Ad
  • Custom User Avatar

    Hey, I like fractions.

    I found a similarly-themed kata, "Cogs" (https://www.codewars.com/kata/59e1b9ce7997cbecb9000014) but that kata wants only the rotation of the final cog in a decimal representation.

    Suggestion It might be nice to add the word "fraction" in the description. Either that or specifically call out that you're looking for the output to be simplified or "reduced to lowest terms" or something.

  • Custom User Avatar

    That note is an Issue.

    No random tests.

  • Custom User Avatar

    the description is incomplete: you never said that the aircraft is moving in straight line only.

  • Custom User Avatar
     given random inputs
    expected 19 to deeply equal 20
    

    -> you need to use approximate comparison, otherwise your random tests are subject to floating point errors

    it happens for h,a,s = 10 210 1

    Note: your random tests aren't random at all....