![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/HSspL/btsDh8FKvfl/GMEujHMkO5s89JSMIx21L1/img.png)
Given a string s consisting of words and spaces, return the length of the last word in the string. A word is a maximal substring consisting of non-space characters only. 첫 번째 일단 풀었는데, runtime이 2ms라서 다시 풀어야한다. runtime 0ms되기까지! class Solution { public int lengthOfLastWord(String s) { String[] words = s.trim().split("\\s+"); int count = words.length; String res = words[count-1]; return res.length()..
백준&LeetCode
2024. 1. 10. 12:41
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- database연결
- 10828번
- 사람검출
- randint
- 파이썬
- 사람수세기
- 터틀그래픽예제
- Turtle Graphic
- 문제풀이
- 다인승
- 터틀그래픽
- springboot
- 터틀그래픽 명령어
- 에러발생
- SPRING오류해결
- JAVA오류해결
- python공부
- 다인승탑승
- gradleload오류
- konlpy
- YOLO
- UnsupportedClassVersionError
- tweepy
- 백준
- yolov8
- baekjoon
- randrange
- Kkma
- streamlistener
- 오븐시계
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함