Ad
  • Default User Avatar

    TypeScript fork

    warning: this will invalidate all current solutions

  • Custom User Avatar
  • Default User Avatar

    Currently, there is an inconsistency between the description and the tests (TypeScript): The description is asking for an Iterator<BigInt> whereas the tests are asking for Iterator<number>. In consequence, when we submit a valid implementation using BigInt then the tests fail.

  • Custom User Avatar

    Ok I finally unlocked the solution--my first unlock--after hours of making this more complicated. Now I see that the accepted solutions return the same value as my code did. When I paste some of those accepted solutions and Try or Attempt, I still get the failure message. So I think something is off with the testing and I am reporting this as an issue. The Kata is still fairly interesting and instructive, but this should be resolved

  • Custom User Avatar

    The translation can't really be made language-agnostic ( different languages use different types, and they should be specified ), but it can be cleaned up with some language-specific blocks. I think it should; with every added language it will just get messier. I don't really feel up to doing that myself though.

  • Custom User Avatar

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

  • Custom User Avatar

    ( TS )

    The Iterator is tested beyond MaxInt. That gives problems.

    Not creating an Issue because it's old and authors may have fled the scene, but it really is.

  • Custom User Avatar

    I think this should be updated (or a new version of it) to use bigint, not number. Or in the details it should state that the result goes until Number.MAX_VALUE then NaN, and not "an infinite sized, sequential".

  • Custom User Avatar

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

  • Custom User Avatar

    I think there is some bug in the tester code. I think it'd ask for numbers larger than Integer.MAX_INTEGER sometimes in the Java implementation.

  • Custom User Avatar

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

  • Custom User Avatar
    • You forgot to edit initial code
    • No Random Tests? I dont think my ugly solution should pass....