Prateek
BAN USER
Comments (3)
Reputation 5
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 vote
@anuj
lets understand by simple example:
suppose 90 is the number after which we have to find multiple of 64
than binary of 90 is 01011010 and 90+64=154 whose binary is 10011010
now you can see after adding 64 to 90 the next bit(8th bit is set)
when you '&' it with `~63' i.e. 11000000 it gives u value 10000000 which is 128. so the trick is to add 64 to the value so that its next bit is set. which will be remain during logical ANDING of negation of 63.
Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
list should be synchronized
- Prateek August 08, 2017observer should be there on list as soon as it gets updated
I guess caching should not present