1202. Smallest String With Swaps
LeetCode的第1202道题目。You are given a string s, and an array of pairs of indices in the string pairs where pairs[i] = [a, b] indicates 2 indices(0-indexed) of the string.You can swap the characters at any pair of indices in the given pairs any number of time。
原创
2019-09-23 11:06:14 ·
466 阅读 ·
0 评论