• 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
hsamuelson Avatar
Name:Unknown
Clan:Cornell University
Member Since:Jan 2017
Last Seen:Feb 2019
Profiles:
Following:245
Followers:246
Allies:245
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (69)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • lomsadef
    • commented on "Create Phone Number" java solution
    • 4 months ago

    Replacing "jokers" in one forward loop! It reminds me the "Eratosthenes Sieve" algorithm! Clever and fast way!

  • Custom User Avatar
    • pigmeej
    • commented on "Create Phone Number" java solution
    • 5 months ago

    This is actually my favourite even though it seems quite expensive time ande space-wise.

  • Custom User Avatar
    • Apfelkuchen
    • commented on "Valid Braces" java solution
    • 13 months ago

    Cool solution! But is it O(n^2) compared to O(n) for the stack approach?

  • Custom User Avatar
    • Diversity
    • commented on "Valid Braces" java solution
    • 2 years ago

    Hi pretty cool,

    what i have to mention is, what exactly are you doing if
    the use case changes and you would have to compute any string within any valid braces?

  • Custom User Avatar
    • ARandomParticle
    • commented on "Valid Braces" java solution
    • 2 years ago

    To add on, I think it's also because the pair of brackets will only be replaced with "" if the open and close brackets are in the correct order, of the same type as well as next to each other, on each iteration. By the last iteration, it should give you a "" if the bracket orderings are valid.

  • Custom User Avatar
    • YahiUwU
    • commented on "Create Phone Number" java solution
    • 2 years ago

    AWESOME O_O

  • Custom User Avatar
    • Kr13g3rArgyn
    • commented on "Create Phone Number" java solution
    • 3 years ago

    I'm dumb, didn't think about this way

  • Custom User Avatar
    • Gamiii
    • commented on "Create Phone Number" java solution
    • 3 years ago

    Clever solution.

  • Custom User Avatar
    • Sensoker
    • commented on "IP Validation" javascript solution
    • 3 years ago

    marvellous

  • Custom User Avatar
    • hobovsky
    • commented on "IP Validation" javascript solution
    • 3 years ago

    Comments to solutions are visible even when you have not solved the kata. You cannot see code of solution, but you can see comments when you get to solution page with a direct link, or on the front page dashboard.

  • Custom User Avatar
    • dev-dmitriy-diachenko
    • commented on "IP Validation" javascript solution
    • 3 years ago

    As far as i know, you can't see the solutions unless you're already solve the kata. Doesn't it means that you can't see the comments to the particular solution? Please correct me, if I wrong)

  • Custom User Avatar
    • Chrono79
    • commented on "IP Validation" javascript solution
    • 3 years ago

    Use spoiler flag next time.

  • Custom User Avatar
    • dev-dmitriy-diachenko
    • commented on "IP Validation" javascript solution
    • 3 years ago

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

  • Custom User Avatar
    • rohitrjbeta
    • commented on "IP Validation" javascript solution
    • 3 years ago

    no matter how hard you try there is always one line solution there :D

  • Custom User Avatar
    • roki4
    • commented on "IP Validation" javascript solution
    • 3 years ago

    lol :o

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...