• 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
mmib Avatar
Name:Unknown
Clan:Unknown
Member Since:Jan 2021
Last Seen:Nov 2024
Profiles:
    Following:0
    Followers:0
    Allies:0
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations
    • Replies
    • Authored (62)
    • Needs Resolution
    • Custom User Avatar
      • mmib
      • commented on "Sequence classifier" python solution
      • 2 years ago

      No, by entire array I meant that if the array has length n, his code runs through 2n elements on average.
      I presume you took the time results provided by the test cases which deviate in general, that way the claim can be made either way. If you just run both versions in a properly timed environment you get mine to be about 3x faster, regardless of whether they lists are fully randomized or worst case samples.

    • Custom User Avatar
      • mmib
      • commented on "Doors in the school" python solution
      • 3 years ago

      In short, importing the sqrt certainly doesn't benefit from being in the function. :P

    • Custom User Avatar
      • mmib
      • commented on "Doors in the school" python solution
      • 3 years ago

      you wouldn't import inside a function.

    • Custom User Avatar
      • mmib
      • commented on "Reverse polish notation calculator" python solution
      • 3 years ago

      you can elaborate on that using the discussions thread instead of writing the code :D

    • Custom User Avatar
      • mmib
      • commented on "Least Larger" python solution
      • 3 years ago

      just loop over it without using a comp .-.

    • Custom User Avatar
      • mmib
      • commented on "Composing squared strings" python solution
      • 3 years ago

      golfing works here but you can't use len() for every single iteration..

    • Custom User Avatar
      • mmib
      • commented on "Reverse polish notation calculator" python solution
      • 3 years ago

      cheap

    • Custom User Avatar
      • mmib
      • commented on "Range Extraction" python solution
      • 3 years ago

      regex and still chaotic, ugh.

    • Custom User Avatar
      • mmib
      • commented on "Text align justify" python solution
      • 3 years ago

      cheat :P

    • Custom User Avatar
      • mmib
      • commented on "Data mining #2" kata
      • 3 years ago

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

    • Custom User Avatar
      • mmib
      • commented on "N-Parasitic Numbers Ending in N" python solution
      • 3 years ago

      cheap

    • Custom User Avatar
      • mmib
      • commented on "Rule 30" python solution
      • 3 years ago

      nice, there also is a way to apply a formula without the need to iterate n times.
      If you perceive each list of Ones/Zeros as a binary number and divide any number Rule30(...,n)/Rule30(...,n-1), then you'll see the pattern.

    • Custom User Avatar
      • mmib
      • commented on "Sequence classifier" python solution
      • 3 years ago

      ofc it's slow, he traverses the entire array ~2 times even though he only needs to do once. Or rather less than once

    • Custom User Avatar
      • mmib
      • commented on "Sequence classifier" python solution
      • 3 years ago

      really slow

    • Custom User Avatar
      • mmib
      • commented on "Valid Spacing" python solution
      • 3 years ago

      kind of slow tho :c

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...