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
- 금융문자분석경진대회
- Baekjoon
- programmers
- 우분투
- 더현대서울 맛집
- 파이썬
- github
- 코로나19
- 데이콘
- Git
- leetcode
- Kaggle
- 프로그래머스
- 편스토랑 우승상품
- gs25
- SW Expert Academy
- 프로그래머스 파이썬
- dacon
- 맥북
- Real or Not? NLP with Disaster Tweets
- 편스토랑
- hackerrank
- Docker
- 캐치카페
- 자연어처리
- AI 경진대회
- 백준
- ubuntu
- ChatGPT
- PYTHON
Archives
- Today
- Total
목록
반응형
434. Number of Segments in a String (1)
반응형
솜씨좋은장씨
[leetCode] 434. Number of Segments in a String (Python)
Count the number of segments in a string, where a segment is defined to be a contiguous sequence of non-space characters. Please note that the string does not contain any non-printable characters. Example: Input: "Hello, my name is John" Output: 5 Solution class Solution: def countSegments(self, s: str) -> int: answer = len(s.split()) return answer SOMJANG/CODINGTEST_PRACTICE 1일 1문제 since 2020.0..
Programming/코딩 1일 1문제
2020. 8. 2. 23:31
반응형