• 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
WarpedReality Avatar
Name:Unknown
Clan:Unknown
Member Since:Aug 2021
Last Seen:Jul 2024
Profiles:
    Following:0
    Followers:7
    Allies:0
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (34)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • pancho508
      • commented on "Returning Strings" cpp solution
      • 5 months ago

      happens xD

    • Custom User Avatar
      • Domino127
      • commented on "Returning Strings" cpp solution
      • 5 months ago

      what the actual f*ck?

    • Custom User Avatar
      • Potato_Human
      • commented on "Returning Strings" cpp solution
      • 8 months ago

      Nothing Personal bruv :)

    • Custom User Avatar
      • terrencelovesu
      • commented on "Is n divisible by x and y?" cpp solution
      • 9 months ago

      cool

    • Custom User Avatar
      • WarpedReality
      • commented on "Is n divisible by x and y?" cpp solution
      • 11 months ago

      Yes. bitwise-or of the modulo(remainder). It is only zero if both modulos are zero.
      When using it on bools you have to be a bit careful, as (1 | 2) is 0011, and that is stored in boolean. true is 0001, so while (1 | 2) evalutes to true, it's not equal to true in some way. Here it's fine, but be aware. Negating with ! (boolean not) "normalizes" it to 0000 or 0001 though. ~ would be the bitwise not.

      bitwise-or may be faster as it does not branch (both sides are always evaluated), as opposed to boolean or. But don't rely on that.

    • Custom User Avatar
      • amremara206
      • commented on "Is n divisible by x and y?" cpp solution
      • 11 months ago

      is this the bitwise OR operator?

    • Custom User Avatar
      • yousefelkall
      • commented on "Is n divisible by x and y?" cpp solution
      • 11 months ago

      nice man good job ?? !!

    • Custom User Avatar
      • Femto9999
      • commented on "Returning Strings" cpp solution
      • 12 months ago

      lol?

    • Custom User Avatar
      • vtk2001
      • commented on "Returning Strings" cpp solution
      • 2 years ago

      😆

    • Custom User Avatar
      • Dr.Mo3giza
      • commented on "Is n divisible by x and y?" cpp solution
      • 2 years ago

      it's really clever but indentation is not very good.

    • Custom User Avatar
      • Abdelaziem06
      • commented on "Is n divisible by x and y?" cpp solution
      • 2 years ago

      nice coding

    • Custom User Avatar
      • kiryasolod
      • commented on "Returning Strings" cpp solution
      • 2 years ago

      Try to apply to some Chinease company, bro! You will be a millionaire, because they pay for a volume of code. I worked with Chinease code a few years ago. Even now I feel that it's better to get psychological attention :)

    • Custom User Avatar
      • thinmap
      • commented on "Returning Strings" cpp solution
      • 2 years ago

      The OOP we deserve

    • Custom User Avatar
      • WarpedReality
      • commented on "Switcheroo" cpp solution
      • 3 years ago

      yeah it is inefficient (and unreadable). Just wanted to make it weird

    • Custom User Avatar
      • manikaran
      • commented on "Switcheroo" cpp solution
      • 3 years ago

      lol df

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...