Meta Interview Question

Add two binary numbers represents in strings, those could be large values.

Interview Answers

Anonymous

Nov 27, 2012

I tried using iterate through the bigger one and calculate the sum, it works fine but I didn't qualify. May be they need something else, they didn't give me any answer too.

Anonymous

Dec 29, 2014

since it is a string which may indicates big integer, how do u use bit operation

Anonymous

Jan 5, 2013

You need to do it using bit operations like xor, &, |.