[algogeeks] Re: question

2011-07-28 Thread Tim Zheng
count++; bitMask <<= 1; } return count; } On Jul 28, 2:43 pm, sylvester wrote: > i just read this quetion somewhere...i dont have any idea what exactly > they mean by this...so m looking for any soln that can be possible > > On Jul 29, 2:19 am, Tim Zheng wrote: >

[algogeeks] Re: question

2011-07-28 Thread Tim Zheng
What's the basic operation on A allowed here to convert it to B? Just to flip individual bit? On Jul 28, 2:14 pm, sylvester wrote: > Given two integers A & B. Determine how many bits required to convert > A to B. Write a function int BitSwapReqd(int A, int B); -- You received this message becau