Domanda di colloquio di Tinder

Implement the following method signature `String addBinary(String a, String b)`

Risposta di colloquio

Anonimo

17 giu 2017

Iterate both strings from right to left and also keep track of the sum and carry. I used a StringBuilder to keep track of the values.

1