Add Two Binary Strings

Given two binary numbers as strings, return their sum as a binary string.

Statement

Given two binary numbers as strings, implement a function that performs the binary addition on the strings and returns the output in the form of a string.

Example

Level up your interview prep. Join Educative to access 80+ hands-on prep courses.