MCPcopy Create free account
hub / github.com/Hsinha11/Leetcode-solutions / reverseString

Method reverseString

344-reverse-string/reverse-string.py:2–6  ·  view source on GitHub ↗

Do not return anything, modify s in-place instead.

(self, s: List[str])

Source from the content-addressed store, hash-verified

1class Solution:
2 def reverseString(self, s: List[str]) -> None:
3 """
4 Do not return anything, modify s in-place instead.
5 """
6 s[:] =s[::-1]
7
8

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected