GoLang Solution For LeetCode Problem: Missing Number
Solving Missing Number in go. Please try yourself first to solve the problem and submit your implementation to LeetCode before looking into solution.
Input: [3,0,1] Output: 2
Input: [9,6,4,2,3,5,7,0,1] Output: 8
Note:Your algorithm should run in linear runtime complexity. Could you implement it using only constant extra space complexity?
See the full details of the problem Missing Number at LeetCode
Originally posted at: @github.com/halfrost/LeetCode-Go