Search⌘ K
AI Features

Add Binary

Explore how to add two binary strings correctly and efficiently. Understand the problem constraints, develop a clear solution, and implement an optimal algorithm running in linear time and space, preparing you for coding interview challenges.

Statement

Given two binary strings str1 and str2, return their sum as a binary string.

Constraints:

  • 11 ...