• 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
codingstar1 Avatar
Name:Unknown
Clan:Unknown
Member Since:Aug 2022
Last Seen:Sep 2022
Profiles:
    Following:5
    Followers:0
    Allies:0
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (22)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • codingstar1
      • resolved an issue on "Which are in?" kata
      • 3 years ago

      Ok, thank you for your answer.

    • Custom User Avatar
      • tyler308956
      • commented on "Multiples of 3 or 5" kata
      • 3 years ago

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

    • Custom User Avatar
      • codingstar1
      • commented on "Next bigger number with the same digits" ruby solution
      • 3 years ago

      How can sorting on each step be a best practice?
      But it is clever without doubt.

    • Custom User Avatar
      • g964
      • commented on "Which are in?" kata
      • 3 years ago

      This is not a mistake. The first translations (Ruby, Python, etc... 8 years ago) didn't test for duplicates. Duplicates were introduced by the Haskell translator (@bkaes) and gave many fiery discourses (see at the very bottom of this page). I never had enough time to modify that and don't think I will have. All I can do is to modify the description by replacing "Beware: r must be without duplicates." by "Beware: in some languages r must be without duplicates.". Hope this will satisvy you though not quite satisfying...

    • Custom User Avatar
      • codingstar1
      • created an issue for "Which are in?" kata
      • 3 years ago

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

    • Custom User Avatar
      • codingstar1
      • commented on "Which are in?" ruby solution
      • 3 years ago

      Your solution fails on this test:
      in_array(["foo bar", "foo", "bar"], ["foo", "bar"])
      Sorry.

    • Custom User Avatar
      • codingstar1
      • commented on "Which are in?" ruby solution
      • 3 years ago

      This solution allows duplicates in the answer and thus is wrong.

    • Custom User Avatar
      • codingstar1
      • commented on "Multiples of 3 or 5" kata
      • 3 years ago

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

    • Custom User Avatar
      • codingstar1
      • commented on "Multiples of 3 or 5" ruby solution
      • 3 years ago

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

    • Custom User Avatar
      • codingstar1
      • commented on "N-th Power" ruby solution
      • 3 years ago

      Actually this approach is a huge loser in benchmark tests.

    • Custom User Avatar
      • codingstar1
      • commented on "Valid Phone Number" ruby solution
      • 3 years ago

      Lol! The author should add test cases.

    • Custom User Avatar
      • codingstar1
      • commented on "Breaking chocolate problem" ruby solution
      • 3 years ago

      Ok. What if n = 1 and m = 0?

    • Custom User Avatar
      • codingstar1
      • commented on "Breaking chocolate problem" ruby solution
      • 3 years ago

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

    • Custom User Avatar
      • codingstar1
      • commented on "Breaking chocolate problem" ruby solution
      • 3 years ago

      What if m == 0 ?

    • Custom User Avatar
      • codingstar1
      • commented on "Sum of Intervals" ruby solution
      • 3 years ago

      Brilliant!

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...