MCPcopy Create free account
hub / github.com/HuberTRoy/leetCode / reverseString

Method reverseString

String/ReverseString.py:28–35  ·  view source on GitHub ↗

:type s: str :rtype: str

(self, s)

Source from the content-addressed store, hash-verified

26"""
27class Solution(object):
28 def reverseString(self, s):
29 """
30 :type s: str
31 :rtype: str
32 """
33
34 # return s[::-1]
35 return ''.join(reversed(list(s)))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected