Questions tagged [binary]

For challenges about binary, or the base 2 number system.

2 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7 votes
0 answers

Find the linear transformation

Given a set of bit vectors \$A\$ and a binary matrix \$M\$, we can define the set \$MA = \{ Mx : x \in A \}\$, where \$ M x \$ is the result of the matrix multiplication of \$ M \$ by \$ x \$ over \$\...
Command Master's user avatar
0 votes
0 answers

How to efficiently count all powers of 2 in a given set of numbers in

Every integer can be expressed in powers of 2. You know this as the binary system Assume you are given a set of k numbers ...
aludebe's user avatar