Code Challenge #10
- Biyi Akinpelu
- Mar 11, 2024
- 1 min read
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.
Comments