• 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
AFP Avatar
Name:Unknown
Clan:Unknown
Member Since:Jan 2017
Last Seen:Nov 2023
Profiles:
Following:0
Followers:0
Allies:0
View Profile Badges
Career Accelerator
Ad
Land Your Dream Job in Tech
Coding Dojo offers a full-stack programming and data science bootcamp online and in-person.Request Info
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations
  • Replies (8)
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • Carbon2077
    • commented on "Factorial" c solution
    • 3 years ago

    Maybe that was a joke only :)

  • Custom User Avatar
    • Husoski
    • commented on "Where my anagrams at?" ruby solution
    • 3 years ago

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

  • Custom User Avatar
    • npassaro
    • commented on "Credit Card Mask" ruby solution
    • 4 years ago

    I do know regex :) What I didn't know was how to manage gsub with it and it is actually more difficult to read what is considered the top answer.

  • Custom User Avatar
    • dinglemouse
    • commented on "up AND down" c solution
    • 4 years ago

    The copy allocates heap space (strdup) which I want to free to avoid leakage, and so does arr (malloc), but char *p is just a pointer.

  • Custom User Avatar
    • Adsidera
    • commented on "Duplicate Encoder" ruby solution
    • 5 years ago

    Not if the word chars are set to uniq before starting the count loop :)

  • Custom User Avatar
    • Adsidera
    • commented on "Is a number prime?" ruby solution
    • 5 years ago

    Exactly..that is a good practice!

  • Custom User Avatar
    • sahglie
    • commented on "Where my anagrams at?" ruby solution
    • 9 years ago

    wow, ur a genius!

  • Custom User Avatar
    • chills42
    • commented on "Categorize New Member" ruby solution
    • 9 years ago

    That may be better for more expensive calculations, but the beauty of this design is that it mostly doesn't matter. That change could be entirely internal to the class, with no change to the external interface. So... we don't have to make any decision about it until we've tested the performance.

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...