Canonical union representative [mp]
Micro pattern¶
Description¶
Choose a component root according to the value required as its canonical output.
Problems¶
- 1061. Lexicographically Smallest Equivalent String (Graph Theory)
Choose a component root according to the value required as its canonical output.