Ad
  • Custom User Avatar

    What a nice kata.

  • Custom User Avatar
  • Custom User Avatar

    What happens to sort method on array for JS with this kata ?
    Array.sort is not working and leave array unmodified. Kata does not specify blocking anything

  • Custom User Avatar

    Approved

  • Default User Avatar
  • Custom User Avatar

    when it seems you are doing the right thing and tests says no.
    then you make such hard code

    def sort_by_bit(arr):
        return [1, 2, 3, 4, 5, 6]
    

    and the tests say that they don't care what you return.

  • Custom User Avatar

    That may be subjecive, but given that there are mentions in description of constraints that include arrays of length ~100_000, that in itself should suggest "performance".

  • Default User Avatar

    please add a performance tag! С++ big_random_tests is impossible to pass without optimization

  • Custom User Avatar
    • "Your function shouldn't return anything".

    In JS, if a function doesn't explicitly return a value, it still returns 'undefined' by default. So, a function always returns something.

  • Default User Avatar

    there's a link under the comment that says "View Solution"

    that link is only there when someone has the right language selected and has already solved/forfeited the kata for that language. Besides, since it fetches the solution of your most recent attempt (regardless of whether it passes or not), it is not reliable.

    Anyways, I completely rewrote the C tests suite, it should be OK now (old solutions are still passing, at least the author's)

  • Custom User Avatar

    I did say it was C and there's a link under the comment that says "View Solution" that always changes to the most recently attempted & passing one if it matches the language you selected above. I didn't think to post a direct link but I couldn't have anyway-- the 3 passing attempts on my own list of solved katas don't have the Discuss link, only Refactor, presumably because I didn't Submit. I'm sorry for not starting with the TL;DR: and only getting to it in edits after trying more things I could have tried sooner.

  • Default User Avatar

    Okay, the tests suite in C is seriously messed up. I have to rewrite it from scratch.

  • Default User Avatar

    how am i supposed to debug anything with that kind of issue report ? you basically say "my solution was not supposed to pass but passed, there might be something wrong, or maybe not, and i'm not giving a link to my solution" :(

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar
  • Loading more items...