GoLang Solution For LeetCode Problem: Adding Two Negabinary Numbers
Solving Adding Two Negabinary Numbers in go. Please try yourself first to solve the problem and submit your implementation to LeetCode before looking into solution.
Problem Description
Example 1:
Input: arr1 = [1,1,1,1,1], arr2 = [1,0,1]
Output: [1,0,0,0,0]
Explanation: arr1 represents 11, arr2 represents 5, the output represents 16.
Note:
1 <= arr1.length <= 1000
1 <= arr2.length <= 1000
- 1 <= arr1.length <= 1000
- 1 <= arr2.length <= 1000
See the full details of the problem Adding Two Negabinary Numbers at LeetCode
Originally posted at: @github.com/halfrost/LeetCode-Go
Comments
Leave a comment
You are not LoggedIn but you can comment as an anonymous user which requires manual approval. For better experience please Login.