• Custom User Avatar

    Nice kata, it shares some similarities with other ones like using a mathematical approach rather than something else.

  • Custom User Avatar

    More simply, return all factors of x in a sorted array from lowest to highest.

  • Custom User Avatar

    Missing a test assert.deepEqual( getDividers([127],[7]), [ 1, 127, 16129, 2048383, 260144641, 33038369407, 4195872914689, 532875860165503 ] );.

    It's not often I propose performance tests, but allowing solutions to find factors by enumerating up to the given number that is passed in prefactored is ridiculous. ( And people vote it Best Practice, and that just galls me. )

  • Custom User Avatar

    ( JS )

    Random tests are vulnerable to input modification

  • Custom User Avatar

    thank you sm!

  • Custom User Avatar

    love this kata thank you very much. made my day

  • Custom User Avatar

    Couldn't be any clearer :) I'll try that next time!!

  • Custom User Avatar

    Thanks for your contribution, but this Kata seems to be a duplicate of this one and will be deleted soon I guess.

  • Custom User Avatar

    The list will always be in ascending order,

    In random test there are unsorted lists, lists with duplicates, ...

    A random sorted list without duplicates can be generated with

    from random import randrange, sample
    
    def random_hours_list():
        length = randrange(2, 24)
        return sorted(sample(range(24), k=length))
    
  • Custom User Avatar

    A kata can't be deleted if it has been attempted/solved by someone else. You can still unpublish it though.

  • Custom User Avatar

    Alright I understand! I can't seem to delete this Kata myself for the moment tho, I'll try later or let someone delete it manually :)

  • Custom User Avatar

    Thank you! :)

  • Custom User Avatar

    This kata seems to be fine, I guess, so I can assign a rank for it and get it out from beta:

    • 6 kyu — 9;
    • 7 kyu — 3

    Therefore, this kata is approved with 6 kyu rank, congrats :)

  • Custom User Avatar

    I guess it's in a way that it's more fun! (I hope so) And with different ways to process the data!

  • Custom User Avatar

    Thanks for your contribution once again! Random tests yet again haha

  • Loading more items...