LeetCode biweekly contest 52
RankNameScoreFinish TimeQ1 (3)Q2 (5)Q3 (5)Q4 (6)2217 / 10364YoungForest120:51:470:05:110:51:470:29:51null 1859. Sorting the Sentence
字符串问题用python。虽然题目不难,就是分割字符串,按照指定内容排序,但实现起来还是比想象中复杂的。好在Python中有很多方便的API和数据结构可以灵活使用。
1
2
3
4
5
6
7
8
9
10
class Solution:
def sortSentence(self, s: str) -> str: