반응형
Problem

- 문자열 replace를 이용해 간단하게 풀었땅
class Solution:
def defangIPaddr(self, address: str) -> str:
return address.replace('.','[.]')반응형
'Python > algorithm' 카테고리의 다른 글
| [Leetcode] 2011. Final Value of Variable After Performing Operations (1) | 2022.12.20 |
|---|---|
| [Leetcode] 480. Running Sum of 1d Array (1) | 2022.12.19 |
| 그룹단어체커 [22.09.04] (0) | 2022.09.04 |
| 커트라인 [22.09.04] (0) | 2022.09.04 |
| [자료구조] Array (0) | 2022.09.03 |