Retired

Calculate Average of 5 Rubik's Cube Solves (retired)

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

    The description could be more condensed instead of pasting the whole rulebook into it.

  • WestwardLand968 Avatar

    500 random tests is too much, 100 is enough.

  • WestwardLand968 Avatar

    I know for this kata it is difficult to change it; but returning different data types is bad practice.

  • Voile Avatar

    Current input method and rounding requirement is flawed anyway; try this:

    test.assert_equals(ao5([2.675, 2.675, 2.675, 2.675, 2.675]), 2.68)
    

    The proper method to it is to use Decimal object to parse time strings as decimals directly; see https://www.codewars.com/kata/round-and-round

  • Voile Avatar

    The implementation of real_round provided by the kata is flawed: it doesn't accepts the ndigits optional parameter.

    Also calling it real_round is disgustingly misleading; Banker's rounding is the real round since it's recommended by IEEE standard. The function should be called something faithful and accurate like round_half_up.

  • FArekkusu Avatar

    Tests shouldn't log anything.

  • FArekkusu Avatar

    Tests rely on the user's solution importing math.

  • FArekkusu Avatar

    New test framework should be used.

  • FArekkusu Avatar

    real_round should be preloaded in the initial solution.

  • user9644768 Avatar

    (Note: this kata will assume under or equal to 10 minutes, to avoid potential bugs)

    Some of the numbers in the list of some of the tests are greater 600 seconds (which translates to 10 minutes).

  • user9644768 Avatar

    9f2) All timed results, averages, and means over 10 minutes... are measured and rounded to the nearest second

    Then it is not clear why some of the result are expecting floating number with non-zero fractional part.

  • user9644768 Avatar

    The completed function should take a list consisting of five floating-point numbers (in seconds) or strings labeled 'DNF

    Random tests are generating list of 4:

    Testing: [870.5659, 247.9216, 640.3991, 788.8047] should equal 767
    Log
    [247.9216, 640.3991, 788.8047, 870.5659]
    476.4 should equal 767