All challenges
Multiple ChoiceBeginner 45s

bitset count expression

Given std::bitset<64> bs, which expression counts set bits?
Options
  1. 1std::popcount(bs)
  2. 2bs.sum()
  3. 3bs.size()
  4. 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.

Play this in a 3-minute battle