← Add Binary Strings
Discussions
Sign in to join the discussion.
K
kmalhotra
OFFICIAL
4 months, 1 week 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
2 months 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