Retired

Minimum number of terms needed to find sum in Geometric Series (retired)

Description
Loading description...
Mathematics
Fundamentals
  • Please sign in or sign up to leave a comment.
  • Voile Avatar

    What does a negative ratio and a negative target value means in the context of this kata? Is it even specified? Does it even make any sense to expect any values?

  • Voile Avatar

    when given a sequence and Sn (sum of the sequence) to solve for n, where n is the minimum number of terms needed to exceed (or equal) the sum of the sequence

    Reference sometimes (albeit very rarely) fails at some boundary cases in random tests:

    terms([2, 12, 72], 86)
    3 should equal 4
    

    Such edge cases should be added to sample tests as well.

  • fenring76 Avatar

    This comment has been hidden.

  • fenring76 Avatar

    Kata solution expects user to have imported math module. This should be imported by the solution, not by the user.