Code Challenge #10
Updated: Jul 21, 2024

Given an integer n, return the length of the longest consecutive run of 1s in its binary representation.
For example, given 156, you should return 3.

Updated: Jul 21, 2024

Given an integer n, return the length of the longest consecutive run of 1s in its binary representation.
For example, given 156, you should return 3.