• Sign Up
    Time to claim your honor
  • Training
  • Practice
    Complete challenging Kata to earn honor and ranks. Re-train to hone technique
  • Freestyle Sparring
    Take turns remixing and refactoring others code through Kumite
  • Community
  • Leaderboards
    Achieve honor and move up the global leaderboards
  • Chat
    Join our Discord server and chat with your fellow code warriors
  • Discussions
    View our Github Discussions board to discuss general Codewars topics
  • About
  • Docs
    Learn about all of the different aspects of Codewars
  • Blog
    Read the latest news from Codewars and the community
  • Log In
  • Sign Up
StephenLastname2 Avatar
Name:Unknown
Clan:Homeschool
Member Since:Apr 2017
Last Seen:Sep 2023
Profiles:
    Following:9
    Followers:9
    Allies:9
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (15)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • tobeannouncd
      • created a suggestion for "Distance between two points" kata
      • 8 months ago

      Haskell translation

      The description has been updated to be more language-agnostic and to fix minor formatting/grammar errors.

    • Custom User Avatar
      • mauro-1
      • resolved an issue on "Distance between two points" kata
      • 9 months ago

      Fixed by last fork.

    • Custom User Avatar
      • mauro-1
      • resolved an issue on "Distance between two points" kata
      • 9 months ago

      Fixed by last fork.

    • Custom User Avatar
      • hobovsky
      • resolved a suggestion on "Distance between two points" kata
      • 9 months ago

      merged

    • Custom User Avatar
      • saudiGuy
      • created an issue for "Distance between two points" kata
      • 2 years ago

      python: Floating point comparison should be used. i.e, assert_approx_equals

    • Custom User Avatar
      • saudiGuy
      • created a suggestion for "Distance between two points" kata
      • 2 years ago

      python new test framework is required. updated in this fork

    • Custom User Avatar
      • saudiGuy
      • created an issue for "Distance between two points" kata
      • 2 years ago

      Python: Random tests are vulnerable to input modification

    • Custom User Avatar
      • emilio.if
      • commented on "Distance between two points" kata
      • 2 years ago

      Java traduction

    • Custom User Avatar
      • tonylicoding
      • commented on "Basic Primality Test" kata
      • 5 years ago

      That's a suggestion, not an issue.

    • Custom User Avatar
      • Bubbler
      • commented on "Distance between two points" kata
      • 8 years ago

      The example tests are still using assert_equals.

    • Custom User Avatar
      • StephenLastname2
      • commented on "Distance between two points" kata
      • 8 years ago

      I think I've fixed it now, thanks for the note

    • Custom User Avatar
      • _mer_
      • commented on "Distance between two points" kata
      • 8 years ago

      I had to attempt some 10 times due to differences around the 14th decimal (see below) which made me fail the random test. That was quite annoying especially because used a solution very close to the sensei's. i assume that this is due to floating point calculation errors of the server and not an intended part of the task. i would propose to use delta base test cases ( like assertAlmostEqual(a1,a2,12) )
      Apart from that, nice kata.

      #129.53766699321704 should equal 129.53766699321702
      #93.43629811284134 should equal 93.43629811284133
      #46.73502474311967 should equal 46.73502474311968
      
    • Custom User Avatar
      • StephenLastname2
      • resolved an issue on "Distance between two points" kata
      • 8 years ago

      Fixed it. I used math in my correct solution, copied it over to the Test cases, but forgot to import math in the tests to make my code work without having math in the user solution.

      Thanks for the catch!

    • Custom User Avatar
      • daddepledge
      • created an issue for "Distance between two points" kata
      • 8 years ago

      I get On attempt, I get:

      NameError: name 'math' is not defined

      (I am not using math, I assume you are in your tests?)

    • Custom User Avatar
      • StephenLastname2
      • created an issue for "Basic Primality Test" kata
      • 8 years ago

      This is just an idea, and may go against what you're going for with this beginner kata, but it could be a good idea to add some larger numbers in the tests to make performance a slight issue.

    • © 2025 Codewars
    • About
    • API
    • Blog
    • Privacy
    • Terms
    • Code of Conduct
    • Contact

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...