• 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
arshshaikh Avatar
Name:Arsh Shaikh
Clan:Unknown
Member Since:Jul 2022
Last Seen:Oct 2024
Profiles:
Following:1
Followers:1
Allies:1
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (10)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • arshshaikh
    • created an issue for "Match My Husband" kata
    • 2 years ago

    Java - random test cases do no pass sometimes.

  • Custom User Avatar
    • arshshaikh
    • commented on "Multi-tap Keypad Text Entry on an Old Mobile Phone" java solution
    • 2 years ago

    This is masterful, I love it 😂

  • Custom User Avatar
    • mosleymos
    • commented on "Find if atleast 2 out of 3 booleans are ture." kumite
    • 2 years ago

    Golfing on the variable name
    Use of count method
    Use of an direct return
    Condition without if/else

  • Custom User Avatar
    • Polymorbism
    • commented on "Find if at least 2 out of 3 values === True." kumite
    • 2 years ago

    TL;DR
    a very very long way of writing
    solution = lambda v: len([x for x in v if x is True]) > 1

  • Custom User Avatar
    • engelthehyp
    • commented on "Find if at least 2 out of 3 values === True." kumite
    • 2 years ago

    Fun fact - I have 0% chance of figuring out how this works.

  • Custom User Avatar
    • edwinabot
    • commented on "Find if at least 2 values in a list === True" kumite
    • 2 years ago

    Imporoving on @SiegHeil answer, this will be better:

    return param.count(True) > 1

  • Custom User Avatar
    • SiegHeil
    • commented on "Find if at least 2 values in a list === True" kumite
    • 2 years ago

    i think that will be better:
    return True if param.count(True) >= 2 else False

  • Custom User Avatar
    • schellingerhout
    • commented on "Find if at least 2 out of 3 booleans are true." kumite
    • 3 years ago

    But it is good for a laugh, plus taught me __builtin_popcount

  • Custom User Avatar
    • fcr--
    • commented on "Find if at least 2 out of 3 booleans are true." kumite
    • 3 years ago

    There are so many things wrong in this solution, it amazes me it even works.

  • Custom User Avatar
    • Luk-ESC
    • commented on "Find if at least 2 out of 3 booleans are true." kumite
    • 3 years ago

    this solution contains "bool" 8 times lol

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...