• 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
    • Replies (14)
    • 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
      • voyxxx
      • commented on "Range Extraction" javascript solution
      • 4 years ago

      the more times you go through the array, the better the practice

    • Custom User Avatar
      • Grey
      • commented on "Directions Reduction" javascript solution
      • 5 years ago

      Splice doesn't work the way you think it does. Your solution actually uses quadratically more memory allocations than this solution does. For that reason, splice is also the slowest array method in the language, making your solution quadratically slower.

      Even in lower-level languages, arrays usually occupy a continuous chunk of memory addressed via offset, so there is no pointer to reassign, so splice can't be fast. Linked lists have that advantage, but also have distinct disadvantages (mainly slow data retrieval).

    • Custom User Avatar
      • LesRamer
      • commented on "Recover a secret string from random triplets" javascript solution
      • 5 years ago

      I'm glad that you take the time to read others' solutions. With a good attitude and a desire to improve, you'll come up with some great solutions to other kata.

    • Custom User Avatar
      • rowcased
      • commented on "Total amount of points" javascript solution
      • 5 years ago

      JazzaScript

    • Custom User Avatar
      • wassim.baghdadi
      • commented on "Snakes and Ladders" javascript solution
      • 5 years ago

      Hi there! i am not trying to solve the problem in less code lines. My main focus is to model the components of the game in OOP and if you try to understand it, you will.

    • Custom User Avatar
      • Neocortexx
      • commented on "Printer Errors" javascript solution
      • 5 years ago

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

    • Custom User Avatar
      • Chrono79
      • commented on "Printer Errors" javascript solution
      • 5 years ago

      Please, use spoiler flag. Your post was visible in the home page.

    • © 2025 Codewars
    • About
    • API
    • Blog
    • Privacy
    • Terms
    • Code of Conduct
    • Contact

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...