數據結構常見筆試題

反轉一個無符號整數的比特位.  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) {
相關文章
相關標籤/搜索