HDLbits
Browse Problems

Circuits/Combinational Logic

3-Bit Population Count

medium
arithmeticcombinationalpopulation-count

Return the number of high bits in the three-bit input as an unsigned two-bit result.