Skip to content

Commit bd8416c

Browse files
committed
2-6-24
1 parent 80b01b3 commit bd8416c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Jun-2-24.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class Solution:
2+
def reverseString(self, s: List[str]) -> None:
3+
i,j = 0,len(s)-1
4+
while i<j:
5+
s[i],s[j] = s[j],s[i]
6+
i += 1
7+
j -= 1

0 commit comments

Comments
 (0)