Ad
  • Custom User Avatar

    No, you're wrong, you can see my solution works with a different formula.

  • Custom User Avatar

    got the same error in C++. description could be updated to w / h / h since that is the only formula that works
    .

  • Default User Avatar

    it looks you've renamed the function definition itself from 'bmi' to 'Bmi'. Make the "B" lowercase and it will likely be resolved.

  • Custom User Avatar
  • Custom User Avatar

    The easiest way to see the difference is to do both solutions for some smaller inputs by hand.
    If you're confused about the function you've used, try to write it out as a loop and compare the differences.

  • Custom User Avatar

    Thank you

  • Custom User Avatar

    The num argument is passed in edi. The return value should be in rdx:rax.

  • Custom User Avatar

    Hello. How get <--- unsigned __int128 factorial(unsigned num) ---> this num argument in nasm?

  • Custom User Avatar

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

  • Custom User Avatar

    In C#, actual and expected are all mizxed up.

  • Custom User Avatar

    Forked and approved

  • Custom User Avatar

    approved

  • Custom User Avatar

    I've updated the solution.

    • Reverted back to Float to avoid invalidating solutions
    • Updated the approximate equality function with a margin that should be reasonable enough for floating-point errors
    • Removed the fixed edge case in favor of letting the random tests handle it by using the Arbitrary instance of [Float] which starts at [] when the size parameter is 0
  • Custom User Avatar

    Could anyone assist me?
    I keep getting this error message:
    tests/Fixture.cs(11,43): error CS0117: 'Kata' does not contain a definition for 'Bmi'
    tests/Fixture.cs(12,38): error CS0117: 'Kata' does not contain a definition for 'Bmi'
    tests/Fixture.cs(13,42): error CS0117: 'Kata' does not contain a definition for 'Bmi'
    tests/Fixture.cs(14,37): error CS0117: 'Kata' does not contain a definition for 'Bmi'

  • Custom User Avatar

    Added in Crystal and Ruby.

  • Loading more items...