Skip to content

Instantly share code, notes, and snippets.

@BharathKumarS
Created March 20, 2020 14:34
Show Gist options
  • Save BharathKumarS/bfe3422dc351ae7416a136dce8aa4fe6 to your computer and use it in GitHub Desktop.
Save BharathKumarS/bfe3422dc351ae7416a136dce8aa4fe6 to your computer and use it in GitHub Desktop.
LeetCode, Reverse the given array. Modifying the input array in-place with O(1)
class Solution:
def reverseString(self, s: List[str]) -> None:
s.reverse()
@BharathKumarS
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment