标签:class integer blog ber bit java solution public range
public class Solution { public int rangeBitwiseAnd(int m, int n) { int r=Integer.MAX_VALUE; while((m&r)!=(n&r)) r=r<<1; return n&r; } }
201. Bitwise AND of Numbers Range
标签:class integer blog ber bit java solution public range
原文地址:http://www.cnblogs.com/asuran/p/7760977.html