67. Add Binary
Practice Add Binary for free on NudgeCode: Easy, Bit Manipulation pattern. Write it in Python or JavaScript, run the tests in your browser, and ask for a hint when you are stuck.
a and b are binary numbers written as strings of 0 and 1. Return their sum, also as a binary string.
Example
a = "11", b = "1" -> "100"
a = "1010", b = "1011" -> "10101"
Constraints
- 1 <= a.length, b.length <= 10^4
- No leading zeros, except for the number "0" itself