Sunday, September 9, 2018

[LeetCode]Custom Sort String


很简单的题,我们把S中字符和对应的index记录下来,然后自己写一个customized sorting function即可,代码如下:


No comments:

Post a Comment