Multiple ChoiceBeginner 45s
bitset count expression
Given std::bitset<64> bs, which expression counts set bits?
Options
- 1std::popcount(bs)
- 2bs.sum()
- 3bs.size()
- 4bs.count()
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.