← Add Binary Strings
Discussions
Sign in to join the discussion.
K
kmalhotra
OFFICIAL
5 months, 3 weeks ago
Why does my solution TLE on the last test case?
XOR cancels equal numbers, and x & (x - 1) clears the lowest set bit. Both give O(1) space solutions here.
💬 1 reply
K
kmalhotra
3 months, 2 weeks ago
Intuition + complexity breakdown for Add Binary Strings.
XOR cancels equal numbers, and x & (x - 1) clears the lowest set bit. Both give O(1) space solutions here.
💬 2 replies