• 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
joem91 Avatar
Name:Unknown
Clan:Unknown
Member Since:Jan 2019
Last Seen:May 2025
Profiles:
    Following:0
    Followers:2
    Allies:0
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (16)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • CrispyBanks
      • commented on "Convert a string to an array" rust solution
      • 2 months ago

      my lame ahh spending and extra 2 seconds adding a closure

    • Custom User Avatar
      • poorpotato
      • commented on "Convert a string to an array" rust solution
      • 9 months ago

      I liked the "str::to_string" part.
      Clever!

    • Custom User Avatar
      • lincot
      • commented on "Bouncing Balls" rust solution
      • 12 months ago

      bouncing_ball(1., 0.5, 0.25) will return 5 instead of 3 here

    • Custom User Avatar
      • smir-ant
      • commented on "Boiled Eggs" rust solution
      • 12 months ago

      Cool and tricky

    • Custom User Avatar
      • joem91
      • commented on "Reversing a Process" rust solution
      • 2 years ago

      The array INV contains the multiplicative inverses of the indices modulo 26 or 0 if the index is not invertible modulo 26.

    • Custom User Avatar
      • xianjin
      • commented on "Reversing a Process" rust solution
      • 2 years ago

      Could you elaborate, what 1, 9, 21, ... are and how you obtained these values?

    • Custom User Avatar
      • joem91
      • commented on "Shortest steps to a number" rust solution
      • 2 years ago

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

    • Custom User Avatar
      • xianjin
      • commented on "Shortest steps to a number" rust solution
      • 2 years ago

      Could you elaborate, how this works?

    • Custom User Avatar
      • joem91
      • commented on "Sum of array singles" rust solution
      • 2 years ago

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

    • Custom User Avatar
      • xianjin
      • commented on "Sum of array singles" rust solution
      • 2 years ago

      Could you elaborate how this works?

    • Custom User Avatar
      • joem91
      • created a question for "Primitive Pythagorean Triples" kata
      • 3 years ago

      The triplets in the return value should be ordered a < b < c, right? I kind of get mixed messages:

      With n = 849
      Expected (134, 1998, [629, 540, 829]) but got (134, 1998, [540, 629, 829]) at src/lib.rs:46:9
      With n = 541
      Expected (87, 1302, [341, 420, 541]) but got (87, 1302, [420, 341, 541]) at src/lib.rs:46:9
      

      Is this an issue with the rust translation/the random tests for rust or am I missing something?

    • Custom User Avatar
      • joem91
      • commented on "Switch it Up!" rust solution
      • 3 years ago

      It should panic, according to the description that's an invalid input.

    • Custom User Avatar
      • salsadipomodoro
      • commented on "Switch it Up!" rust solution
      • 3 years ago

      If you enter 11 the code will panic. I don't think this is a "best practice."

    • Custom User Avatar
      • Unnamed
      • commented on "Grasshopper - Basic Function Fixer" rust solution
      • 3 years ago

      The return type is not an Option, so what else can you do? The only other thing is to use a checked operation explicitly so that it remains in the release configuration, but it isn't the default choice.

    • Custom User Avatar
      • salsadipomodoro
      • commented on "Grasshopper - Basic Function Fixer" rust solution
      • 3 years ago

      This code compiles for the pre-set test but does not consider the worst case. It is not a good practice not to consider the worst case. For example: If you enter an i32::Max or an i32::Min as a parameter, this code will panic. Reporting this code as "Best Practice" is not a good sign of knowing how to look deeply into the problem that has been posed.

    • Loading more items...
    • © 2025 Codewars
    • About
    • API
    • Blog
    • Privacy
    • Terms
    • Code of Conduct
    • Contact

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...