This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * | |
| Find longest sequence of zeros in binary representation of an integer. | |
| */ | |
| public class BinaryLongestZeroSequence { | |
| /** | |
| * worst-case time complexity is O(log(N)); | |
| * number of bits = log(N) ==> worst case is O(N) | |
| * @param N |
NewerOlder