Cisco Systems Interview Question
368 Interview Reviews |
Back to all Cisco Systems Interview Questions & Reviews
Interview questions and reviews posted anonymously by interview candidates
Interview Question for Software Engineer I at Cisco Systems:
Find the index of the least significant bit in an interger
See more for this Cisco Systems Software Engineer I Interview
Helpful Question?
Yes |
No
Inappropriate?



0 of 0 people found this helpful
by ajs:
def findBitHelper(num, n):
if( 2**n > num ): return -1
if( 2**n & num == 2**n):
return n
else:
return findBitHelper(num, n+1)
return findBitHelper(num, 0)