Search⌘ K
AI Features

Similar String Groups

Similar String Groups gives an array of strings that are all anagrams; count the connected groups formed when two strings are similar if one can become the other by at most one swap.

Statement

Two strings x and y are considered similar if they are either exactly ...