数据结构常见笔试题

反转一个无符号整数的比特位.  Reverse the bits of an unsigned integer. For example, x is 0x00001234, then reverse(x) is 0x2C480000. static uint Reverse(uint x) { uint y = 0; for (int i = 0; i < 32; ++i) {
相关文章
相关标签/搜索