791. Custom Sort String
https://leetcode.com/problems/custom-sort-string/
S中每个字母代表对应字母的顺序,对T以S中定义的顺序重排序。S中的字符相当于bucket sorting中的bucket,把T中字符放到对应的bucket即可。
Last updated
Was this helpful?
https://leetcode.com/problems/custom-sort-string/
S中每个字母代表对应字母的顺序,对T以S中定义的顺序重排序。S中的字符相当于bucket sorting中的bucket,把T中字符放到对应的bucket即可。
Last updated
Was this helpful?