My (mostly technical) blog

Posts Tagged ‘interview

I got asked this question during an interview last week. I think I gave a wrong answer in the interview but I decided I needed to find the correct answer! I searched and found this solution which involved bit manipulations, though I didn’t find it intuitive.
I came up with this simple solution

public class PowerOfTwo {
public [...]


Ahmed Sabbour's Facebook profile

 

November 2009
S M T W T F S
« Apr    
1234567
891011121314
15161718192021
22232425262728
2930  

Recently bookmarked