• 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
wb4 Avatar
Name:Unknown
Clan:Unknown
Member Since:Aug 2016
Last Seen:May 2025
Profiles:
    Following:0
    Followers:13
    Allies:0
    View Profile Badges
    Ad
    How many Kata did you complete in 2024?
    Discover our top moments in 2024 and how you can level up in 2025.
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (160)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • wb4
      • commented on "wb4's Python solution for "Not very secure"" kumite
      • 17 days ago

      No, it doesn't fail. It correctly returns false.

      The kata description has "No whitespaces / underscore" as one of the necessary conditions for a true return value.

      Edit: Oh! I see what you mean. You're right, it incorrectly returns true.

    • Custom User Avatar
      • tobeannouncd
      • commented on "Not very secure" python solution
      • 18 days ago

      That's not quite true. If the multiline flag is not set, $ matches the end of the string or the position before a trailing newline.

      > pattern = re.compile(r'\w+$')
      > pattern.match('foo')
      <re.Match object; span=(0, 3), match='foo'>
      > pattern.match('foobar\n')
      <re.Match object; span=(0, 6), match='foobar'>
      > pattern.match('foo\nbar')
      None
      
    • Custom User Avatar
      • tobeannouncd
      • commented on "wb4's Python solution for "Not very secure"" kumite
      • 18 days ago

      Fails on inputs that are otherwise valid with a trailing newline such as 'helloworld\n'

    • Custom User Avatar
      • djkat
      • commented on "Not very secure" python solution
      • 2 months ago

      hardly elegant to use isalnum, more hamfisted and lazy in context of the kata

    • Custom User Avatar
      • wb4
      • commented on "Symbolic differentiation of prefix expressions" kata
      • 5 months ago

      When I started solving this kata (Rust), I thought it was too easy to merit a 2 kyu rating.

      Then I started fighting with the poorly written test suite. Christ. Now I see why it's 2 kyu.
      It's not enough to meet the explicit requirements. You also have to anticipate how the author thinks about math.

      The tests are so finicky. For example, you fail if you express

       d
       -- ln(f(x))
       dx
      

      as

      f'(x)
      -----
      f(x)
      

      instead of the less simple

                1
      f'(x) * ----
              f(x)
      

      And God help you if you don't assume the power operator's second operand is a constant.

    • Custom User Avatar
      • wb4
      • commented on "Large Matrix Expected Value" kata
      • 5 months ago

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

    • Custom User Avatar
      • mattdivs
      • commented on "Double Char" rust solution
      • 6 months ago

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

    • Custom User Avatar
      • meawplex-plus
      • commented on "Array.diff" rust solution
      • 8 months ago

      Almost did the same thing...but I changed the trait bounds on array_diff to also require that T implement the Copy trait.
      Then I used iter and copied instead of just using into_iter like I should have...because I initially misspelled into_iter while trying this exact thing :P

    • Custom User Avatar
      • trashy_incel
      • commented on "Multiplication table for number" rust solution
      • 9 months ago

      check this

    • Custom User Avatar
      • egor7orlov
      • commented on "Multiplication table for number" rust solution
      • 9 months ago

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

    • Custom User Avatar
      • wb4
      • commented on "Approximate solution of differential equation with Runge-Kutta 4" kata
      • 10 months ago

      It's funny how so few people have completed this kata when the description spells out the algorithm for you. I guess people find the math jargon intimidating and run away.

    • Custom User Avatar
      • wb4
      • commented on "Millipede of words" rust solution
      • 10 months ago

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

    • Custom User Avatar
      • wb4
      • created an issue for "Find the missed number" kata
      • 10 months ago

      In Rust, the description doesn't say the returned list needs to be in ascending order, but tests fail if it's not.

    • Custom User Avatar
      • wb4
      • commented on "Odd-heavy Array" rust solution
      • 10 months ago

      Upvoted for the single pass with early return algorithm :)

    • Custom User Avatar
      • wb4
      • commented on "My Language Skills" rust solution
      • 10 months ago

      You can get rid of that awkward Ord::cmp() call by replacing .sorted_by with .sorted_by_key.

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...