标签:
位操作
public class Solution { public int rangeBitwiseAnd(int m, int n) { // ref http://www.cnblogs.com/grandyang/p/4431646.html // 位操作运算 http://blog.csdn.net/morewindows/article/details/7354571 int i =0; while(m!=n){ m >>=1; n >>=1; i++; } return (m<<=i); } }
标签:
原文地址:http://www.cnblogs.com/jiajiaxingxing/p/4518693.html