[leetcode]문자열 뒤집기
컨텐츠 정보
- 조회 4,606
본문
class Solution:
def reverseString(self, s: List[str]) -> None:
left, right = 0, len(s) - 1
while left < right:
s[left], s[right] = s[right], s[left]
left += 1
right -= 1
관련자료
-
서명방송통신대학교 컴퓨터 과학과 단톡 https://open.kakao.com/o/gSLabj6 온라인으로 유학하는 사람들 https://ongongsa.com
-
링크
-
다음
댓글 0개
등록된 댓글이 없습니다.