Skip to content

Commit 5e72e13

Browse files
committed
Runtime: 36 ms (Top 85.00%) | Memory: 13.8 MB (Top 97.50%)
1 parent ff89a91 commit 5e72e13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/algorithms/O/Orderly Queue/Orderly Queue.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runtime: 36 ms (Top 85.00%) | Memory: 13.8 MB (Top 97.50%)
12
class Solution:
23
def orderlyQueue(self, s: str, k: int) -> str:
34
if k>1:
@@ -8,4 +9,4 @@ def orderlyQueue(self, s: str, k: int) -> str:
89
for i in range(len(s)):
910
s=s[1:]+s[0]
1011
s1=min(s1,s)
11-
return s1
12+
return s1

0 commit comments

Comments
 (0)