Re: [闲聊] 每日leetcode

楼主: yam276 ('_')   2024-03-11 22:02:47
※ 引述《Rushia (みけねこ的鼻屎)》之铭言:
: https://leetcode.com/problems/custom-sort-string/description
: 791. Custom Sort String
: 给你一个字串s和一个表示字符排序优先的字串order,排序字串s,如果字符不在 order
: 的话顺序随意。
: 思路:
: 1.创建一个基于order索引的comparator丢给排序函数
: py code
:

Links booklink

Contact Us: admin [ a t ] ucptt.com