Solving Similar String Groups 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: ["tars","rats","arts","star"]
Output: 2

Note:

  1. A.length <= 2000
  2. A[i].length <= 1000
  3. A.length * A[i].length <= 20000
  4. 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