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
- SW Expert Academy
- leetcode
- hackerrank
- 자연어처리
- 캐치카페
- dacon
- 데이콘
- 프로그래머스
- 코로나19
- gs25
- Baekjoon
- 더현대서울 맛집
- PYTHON
- Real or Not? NLP with Disaster Tweets
- programmers
- 파이썬
- ChatGPT
- Kaggle
- 프로그래머스 파이썬
- Docker
- Git
- 편스토랑 우승상품
- 백준
- 금융문자분석경진대회
- github
- AI 경진대회
- 우분투
- 맥북
- ubuntu
- 편스토랑
Archives
- Today
- Total
목록
반응형
Reverse String II (1)
반응형
솜씨좋은장씨
[leetCode] 541. Reverse String II (Python)
Given a string and an integer k, you need to reverse the first k characters for every 2k characters counting from the start of the string. If there are less than k characters left, reverse all of them. If there are less than 2k but greater than or equal to k characters, then reverse the first k characters and left the other as original. Example: Input: s = "abcdefg", k = 2 Output: "bacdfeg" Rest..
Programming/코딩 1일 1문제
2020. 6. 22. 21:07
반응형