[LeetCode] 344. Reverse String
Python class Solution: def reverseString(self, s: List[str]) -> None: s.reverse()
Python class Solution: def reverseString(self, s: List[str]) -> None: s.reverse()
Python ~~~python class Solution: def isPalindrome(self, s: str) -> bool: strs = [] for i in s: if i.isalnum(): ...
Python ~~~python class Solution: def twoSum(self, nums: List[int], target: int) -> List[int]: for i in range(0, len(nums)): for j ...
Python def solution(x, n): sum = 0 answer = [] for i in range(n): sum += x answer.append(sum) return answer
Python a, b = map(int, input().strip().split(' ')) for i in range(b): for j in range(a): print('*', end='') print();