GoLang Solution For LeetCode Problem: DI String Match
Solving DI String Match in go. Please try yourself first to solve the problem and submit your implementation to LeetCode before looking into solution.
Input: "IDID" Output: [0,4,1,3,2]
Input: "III" Output: [0,1,2,3]
Input: "DDI" Output: [3,2,0,1]
1 <= S.length <= 10000
See the full details of the problem DI String Match at LeetCode
Originally posted at: @github.com/halfrost/LeetCode-Go