GoLang Solution For LeetCode Problem: Similar String Groups
Solving Similar String Groups in go. Please try yourself first to solve the problem and submit your implementation to LeetCode before looking into solution.
Input: ["tars","rats","arts","star"] Output: 2
A.length <= 2000
A[i].length <= 1000
A.length * A[i].length <= 20000
- The judging time limit has been increased for this question.
- A.length <= 2000
- A[i].length <= 1000
- A.length * A[i].length <= 20000
See the full details of the problem Similar String Groups at LeetCode
Originally posted at: @github.com/halfrost/LeetCode-Go