• 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
dm1981 Avatar
Name:Demian
Clan:Unknown
Member Since:May 2020
Last Seen:Aug 2021
Profiles:
    Following:62
    Followers:61
    Allies:61
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (69)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • gbnewb
      • commented on "Range Extraction" javascript solution
      • 3 years ago

      @voyxxx Did you mean 'fewer'?

    • Custom User Avatar
      • jacobb
      • commented on "Credit Card Mask" javascript solution
      • 3 years ago

      It might depend on the regular expression engine, but I'd imagine a fixed-width look-around can be optimized to some extent; and I think I've run into it where engines don't support variable-width look-around. Only engine I've really looked at code for is Python's and all the goto statements in there make it pretty hard to follow. What I learned there is that you can avoid regular expression DOS with system interrupts using Python's regular expression engine.

    • Custom User Avatar
      • Limasar
      • commented on "Range Extraction" javascript solution
      • 3 years ago

      @voyxxx, What do you mean? This algorithm traverses the array less then 2 times. Is that to much?

    • Custom User Avatar
      • XRig
      • commented on "Range Extraction" javascript solution
      • 4 years ago

      But it's so easy to read.

    • Custom User Avatar
      • zomi
      • commented on "Range Extraction" javascript solution
      • 4 years ago

      nice thank you for the tip @voyxxx!

    • Custom User Avatar
      • toomsie
      • commented on "Rot13" javascript solution
      • 4 years ago

      You but it is hardcore the solution

    • Custom User Avatar
      • ecedenyo
      • commented on "String incrementer" javascript solution
      • 4 years ago

      do you mean this part (0*) of the regex?, he/she is grouping here the part w/ zeros, I think it's clever, in a good sense, don't you think so?, or am I missing something?

    • Custom User Avatar
      • dm1981
      • commented on "Double Cola" javascript solution
      • 4 years ago

      This should be solve with O(1) and it is not 5kyu consider the complex Math you have to make here.

    • Custom User Avatar
      • dm1981
      • commented on "Integers: Recreation One" javascript solution
      • 4 years ago

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

    • Custom User Avatar
      • dm1981
      • commented on "Best travel" javascript solution
      • 4 years ago

      Is this brute force? What's the time complexity of this solution? Anyone?

    • Custom User Avatar
      • dm1981
      • commented on "Best travel" javascript solution
      • 4 years ago

      ... and then the guy from the refactoring team left the company. THE END.

    • Custom User Avatar
      • dm1981
      • commented on "String incrementer" javascript solution
      • 4 years ago

      This one should be the most voted. Clean and simple solution.

    • Custom User Avatar
      • dm1981
      • commented on "String incrementer" javascript solution
      • 4 years ago

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

    • Custom User Avatar
      • dm1981
      • commented on "Rot13" javascript solution
      • 4 years ago

      Ths is hardcoding the solution

    • Custom User Avatar
      • dm1981
      • commented on "RGB To Hex Conversion" javascript solution
      • 4 years ago

      And why you don't use the spoiler flag?

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...