Pop Count
The population count (or pop count) algorithm is one of the ideas you might look at and think: "Wow! It's simple yet so genial". This algorithm can be useful to count the number of enabled bits (1, on, active, etc) on a binary sequence (e.g.: 0101011...
lublot.hashnode.dev3 min read