Skip to main content
Added fixed original solution
Source Link

C# (Visual C# Interactive Compiler), 26 bytes

p=>(p.Count(n=>n%2>0)|2)<3

Try it online!

Thanks to answer of @xnor -1B

27 bytes

p=>(p.Count(n=>n%2>0)&-3)<1

Try it online!

This one was my first attempt, but I made mistake at first so I'm publishing it now when I fixed it.

C# (Visual C# Interactive Compiler), 26 bytes

p=>(p.Count(n=>n%2>0)|2)<3

Try it online!

C# (Visual C# Interactive Compiler), 26 bytes

p=>(p.Count(n=>n%2>0)|2)<3

Try it online!

Thanks to answer of @xnor -1B

27 bytes

p=>(p.Count(n=>n%2>0)&-3)<1

Try it online!

This one was my first attempt, but I made mistake at first so I'm publishing it now when I fixed it.

Source Link

C# (Visual C# Interactive Compiler), 26 bytes

p=>(p.Count(n=>n%2>0)|2)<3

Try it online!