Ad
  • Custom User Avatar

    C#:

    From the description:

    Where every ki > 1 and every ki is maximized ...

    The elements in the returned array ($k_i$) must be strictly greater than 1.

    However, your array does contain 1 at the end.

    Not a kata issue.

  • Custom User Avatar

    Rust:

    From the description:

    Where every ki > 1 and every ki is maximized ...

    The elements in the returned vector ($k_i$) must be strictly greater than 1.

    However, your vector does contain 1 at the end.

    Not a kata issue.

  • Custom User Avatar

    Rust:

    Remainder can not be greater than the largest k.

    There is no such restriction in the description.


    From the description:

    Where every ki > 1 and every ki is maximized ...

    The elements in the returned vector ($k_i$) must be strictly greater than 1.

    However, your vector does contain 1 at the end.

    Not a kata issue.

  • Custom User Avatar

    test cases are flawed. Remainder can not be greater than the largest k.

    assertion failed: (left == right)
    left: ([22, 13, 10, 8, 7, 6, 6, 5, 5, 5, 4, 4, 4, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1], 28),
    right: ([22, 13, 10, 8, 7, 6, 6, 5, 5, 5, 4, 4, 4, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2], 199)
    tests::random_tests
    assertion failed: (left == right)
    left: ([29, 17, 12, 9, 8, 7, 7, 6, 6, 5, 5, 4, 4, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], 34),
    right: ([29, 17, 12, 9, 8, 7, 7, 6, 6, 5, 5, 4, 4, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2], 349)