• 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
Blind4Basics Avatar
mod
Name:Unknown
Clan:Unknown
Skills:python, <font size=1>js</font>..., java, ruby
Member Since:Sep 2016
Last Seen:May 2025
Profiles:
Following:31
Followers:1,486
Allies:26
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (41391)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • JohanWiltink
    • commented on "Blind4Basics's Python solution for "Clean Nesting Tree"" kumite
    • 18 hours ago

    not any(arr) is O(n), but iff not arr, that's O(1). but only in that case, true.

  • Custom User Avatar
    • Blind4Basics
    • commented on "Blind4Basics's Python solution for "Clean Nesting Tree"" kumite
    • 18 hours ago

    True. But it's harder to spot the base case, here (in my mind, at least)

    Note: not arr is actually O(1) so I wouldn't have phrased the sentencve like that (but maybe I'm just not following your train of thoughts)

  • Custom User Avatar
    • Chevalier33
    • commented on "Simple multiplication" python solution
    • 2 days ago

    cool

  • Custom User Avatar
    • kubesolver
    • commented on "Mouse Over (x,y) (Performance Version)" kata
    • 3 days ago

    I have republished the Kata and after fixing the major flaw in the tests all solutions published in so far have been invalidated. Sorry for that.

  • Custom User Avatar
    • kubesolver
    • resolved an issue on "Mouse Over (x,y) performance version" kata
    • 3 days ago

    Marking issue as resolved.

  • Custom User Avatar
    • kubesolver
    • resolved an issue on "Mouse Over (x,y) performance version" kata
    • 3 days ago

    OMG.
    There was a bug in a testing loop.

      if expected is not actual:
          test.assert_equals(actual, expected, f"For point ({x} {y})")
          return
    

    This code was intended to fail only one assertion per test case.
    But the outside loop tested for sameness while the assertion inside tested for equality, so the solution that returned identical rectangle instead of the same rectangle got assertion right, and then early return - performing only one instead of large numbers of checks beating thus beating the tests.

  • Custom User Avatar
    • Blind4Basics
    • created an issue for "Mouse Over (x,y) performance version" kata
    • 4 days ago

    https://www.codewars.com/kata/reviews/6835f2368c715773ce65b8ef/groups/683617dc9efb9024f93cfa2e

  • Custom User Avatar
    • dfhwze
    • commented on "Full Metal Chemist #2: parse me..." kata
    • 4 days ago

    Those 2 are the remaining ones in sample tests.

  • Custom User Avatar
    • dfhwze
    • commented on "Full Metal Chemist #2: parse me..." kata
    • 4 days ago

    Ok I'll keep adding in this post, and let you know when I'm finished.

    #1

    Mix of cycles and multiple bonds
    Log
    3-ethylcyclohexene:
     CH2-CH2-CH-CH2-CH3
     |       |
     CH=CH-CH2
    {C: 8, H: 14}
    
    => the double bond should be between first and second C
    
    CH2-CH2-CH-CH2-CH3
     |      |
    CH2-CH=CH
    
  • Custom User Avatar
    • Blind4Basics
    • commented on "Full Metal Chemist #2: parse me..." kata
    • 4 days ago

    yeah, make a list, please. I'll fix the whole thing at once.

  • Custom User Avatar
    • mjpieters
    • resolved a suggestion on "Mine Sweeper" kata
    • 4 days ago

    This too was resolved many moons ago.

  • Custom User Avatar
    • mjpieters
    • resolved a suggestion on "Mine Sweeper" kata
    • 4 days ago

    Marking this long-resolved suggestion as resolved.

  • Custom User Avatar
    • dfhwze
    • commented on "Full Metal Chemist #2: parse me..." kata
    • 5 days ago

    There are more subtle mistakes like this in example tests. Should I let you know each time I find such small mistakes, or are these considered ok-ish? For instance:

    "Two ramifications" test:

    positions are swapped: should be 2-ethyl-3-methylpentane

       CH3  CH2-CH3
        |   |
    CH3-CH-CH-CH2-CH3
    
    3-ethyl-2-methylpentane = { C: 8, H: 18 }
    
  • Custom User Avatar
    • Blind4Basics
    • commented on "The Hashtag Generator" python solution
    • 5 days ago

    No, that's wrong.

    • first, the string is too short to conclude anything with that test (you're measuring the number of function calls rather than the actual "string work")
    • second, the actual speed will depend on the python version used. I don't know which one you used, but for instance trying with 3.7 (yeah, I know, but that's the only one I have access to on my current machine), replace is close to 3x faster on huge strings (like, x1000). And on small strings, it's also faster anyway, but the time consumption is so ridiculously low it's not even worth comparing: 5ms against 3ms...
  • Custom User Avatar
    • BasCostBudde
    • commented on "The Hashtag Generator" python solution
    • 5 days ago

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

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...