
maxBits
Given an integer n, find the largest positive integer that has the same number of 0s and 1s…
GroupedBits
Given an integer n, count the number of groups of consecutive 1 bits in its binary representation. Example:…
equalPairOfBits
You're given two integers, n and m. Find position of the rightmost pair of equal bits in their…
calculateNetworkAddress
Given an IP address in CIDR notation. Calculate it's network address. Example: For cidr = "128.42.5.4/21",…
iterMask
The task is to iterate over a bit mask. Given a positive integer n. Return an…