Skip to content

Commit e80e8a4

Browse files
committedAug 19, 2022
Runtime: 241 ms (Top 5.69%) | Memory: 14 MB (Top 18.61%)
1 parent e1c9b4d commit e80e8a4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎scripts/algorithms/C/Custom Sort String/Custom Sort String.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Runtime: 241 ms (Top 5.69%) | Memory: 14 MB (Top 18.61%)
2+
13
class Solution:
24
def customSortString(self, order: str, s: str) -> str:
35
charValue = [0] * 26
@@ -19,4 +21,4 @@ def customSortString(self, order: str, s: str) -> str:
1921
sorted = False
2022
arrS[i], arrS[i + 1] = arrS[i + 1], arrS[i]
2123

22-
return ''.join(arrS)
24+
return ''.join(arrS)

0 commit comments

Comments
 (0)
Please sign in to comment.