Skip to content

Latest commit

 

History

History

1061-LexicographicallySmallestEquivalentString

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Lexicographically Smallest Equivalent String

Problem can be found in here!

Solution: Disjoint Set

Time Complexity: O(n*a(n)), Space Complexity: O(1), where n is the length of string s1 and $\alpha(\cdot)$ is the inverse ackermann function, which grows slowly.