Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
Tags
- leetcode
- 코로나19
- 맥북
- 캐치카페
- AI 경진대회
- github
- gs25
- 프로그래머스 파이썬
- Kaggle
- 데이콘
- ChatGPT
- SW Expert Academy
- 편스토랑
- 금융문자분석경진대회
- hackerrank
- 프로그래머스
- 우분투
- 편스토랑 우승상품
- Real or Not? NLP with Disaster Tweets
- ubuntu
- dacon
- 파이썬
- Docker
- 더현대서울 맛집
- Baekjoon
- PYTHON
- 자연어처리
- programmers
- 백준
- Git
Archives
- Today
- Total
목록
반응형
345. Reverse Vowels of a String (1)
반응형
솜씨좋은장씨
[leetCode] 345. Reverse Vowels of a String (Python)
Write a function that takes a string as input and reverse only the vowels of a string. Example 1: Input: "hello" Output: "holle" Example 2: Input: "leetcode" Output: "leotcede" Note: The vowels does not include the letter "y". Solution class Solution(object): def reverseVowels(self, s): s_list = list(s) vowels = [] for i, val in enumerate(s_list): if val in ['a', 'o', 'e', 'i', 'u', 'A', 'O', 'E..
Programming/코딩 1일 1문제
2020. 8. 7. 21:25
반응형