码迷,mamicode.com
首页 > 其他好文 > 详细

[CareerCup] 5.6 Swap Odd and Even Bits 交换奇偶位

时间:2015-08-20 07:58:25      阅读:111      评论:0      收藏:0      [点我收藏+]

标签:

 

5.6 Write a program to swap odd and even bits in an integer with as few instructions as possible (e.g., bit 0 and bit 1 are swapped, bit 2 and bit 3 are swapped, and soon).

 

[CareerCup] 5.6 Swap Odd and Even Bits 交换奇偶位

标签:

原文地址:http://www.cnblogs.com/grandyang/p/4743995.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!