Each and every directory in Subversion can be thought of its own module, so there's no real way for Subversion to know that foo/bar/barfoo is a directory in module /foo/bar, or a another separate module module.
That means there's no way for Subversion to know how to handle properties that can affect an entire directory tree. Plus, it would be difficult to know exactly what parent directory is affecting a child directory.
var a = 1 << 31; //a = -2147483648 var b = a >>> 0; //b = 2147483648 var c = b << 0; //c = -2147483648
知道了>>>操作符之后,这个leetcode问题就很好解决了,顺便把我的答案附上
1 2 3 4 5 6 7 8 9 10 11 12 13
var reverseBits = function(n) { var m = 0; var index = 31; while(n) { var tmp = n & 1; if(tmp) { m = m | (tmp << index); } index -= 1; n = n >>> 1; //注意,使用无符号右移 } return m>>>0; //m默认是有符号数,强制转换成无符号数 };