• 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
rsalgado Avatar
Name:Roberto Salgado
Clan:Unknown
Skills:javascript, python, html, css, ruby, elixir, java, c#
Member Since:Apr 2014
Last Seen:May 2025
Profiles:
Following:24
Followers:26
Allies:10
View Profile Badges
Ad
Educator, struggling to assess your students?
Assess your classroom or bootcamp with the world leading assessment platform, Qualified.Request your demo today!
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (505)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • YurichBRO
    • commented on "Screen Locking Patterns" kata
    • 13 days ago

    Moreover, there are less than 81 valid outputs, this makes the problem worse.

  • Custom User Avatar
    • YurichBRO
    • commented on "Screen Locking Patterns" kata
    • 13 days ago

    For anyone looking for a harder challenge: https://www.codewars.com/kata/682095dd9fb3dcaab6615ea7

  • Custom User Avatar
    • The-dessert-fox
    • commented on "Binary multiple of 3" kata
    • 2 months ago

    very useful, thank you so much

  • Custom User Avatar
    • CornSnek
    • commented on "Binary multiple of 3" kata
    • 4 months ago

    Nice regex. Tbh, I thought we were going to hard-code a finite state machine of the "binary multiple of 3", but regex is nice too.

  • Custom User Avatar
    • Mednoob
    • commented on "Binary multiple of 3" kata
    • 4 months ago

    The task is to create a regex that can be used to check whether a string is the binary representation of a number divisible by 3, not a function.

  • Custom User Avatar
    • borderwoodsn
    • commented on "Binary multiple of 3" kata
    • 4 months ago

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

  • Custom User Avatar
    • monadius
    • resolved an issue on "Binary multiple of 3" kata
    • 4 months ago

    The regular expression should not use the g flag.

    Chai uses re.exec when it tests a regular expression re. This regular expression matches '000' and its lastIndex is set to 3 (because the g flag is set). The next test calls re.exec('110'). The match starts from the new lastIndex position and it fails.

  • Custom User Avatar
    • Chrono79
    • commented on "Binary multiple of 3" kata
    • 4 months ago

    There is something weird indeed with the tests, if you only leave that one in the sample tests, your code passes it. But, your code is not ok, and it returns true for any combination of 0 and 1 with 3 digits.

  • Custom User Avatar
    • munamohamed94
    • created an issue for "Binary multiple of 3" kata
    • 4 months ago

    Test failing even though it is a match when I console.log the test using

    multipleOf3Regex.test('110')

    My solution is

    const multipleOf3Regex = /^[0-1]{3}$/g

  • Custom User Avatar
    • munamohamed94
    • commented on "Binary multiple of 3" kata
    • 4 months ago

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

  • Custom User Avatar
    • ejini战神
    • resolved a suggestion on "Screen Locking Patterns" kata
    • 6 months ago

    kata hint != kata suggestion

  • Custom User Avatar
    • Animemchik
    • created a suggestion for "Screen Locking Patterns" kata
    • 6 months ago

    Remember about the 6th rule!!!

    I spent approximately 2 hours only because I am so stupid I did't notice the 6th rule.

  • Custom User Avatar
    • hobovsky
    • resolved an issue on "Screen Locking Patterns" kata
    • 7 months ago

    Using global variables is your mistake, and not a kata problem. Code with global variables will work incorrectly everywhere, and not only on Codewars.

  • Custom User Avatar
    • Uoao1807
    • commented on "Screen Locking Patterns" kata
    • 7 months ago

    ahh I solved it, the kata don't count the global variables so I put it to the function and it works correctly. waste 2 hours to discover that :(

  • Custom User Avatar
    • Uoao1807
    • created an issue for "Screen Locking Patterns" kata
    • 7 months ago

    I attempted my code on a compiler with case 'D',3 and it return 37 but when I attempt in the kata it return 30 instead. what's the problem??

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...