Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/geekcomputers/Python
/ circular_rotate
Function
circular_rotate
rotate_string.py:13–20 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
11
12
13
def
circular_rotate(s):
14
s = list(s)
15
idx = 0
16
mid = len(s) // 2
17
for
i in reversed(range(mid, len(s))):
18
s[idx], s[i] = s[i], s[idx]
19
idx += 1
20
return
s
21
22
23
s =
"aditya"
Callers
1
rotate_string.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected