mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-06 01:15:57 +08:00
添加内容
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
# [541. Reverse String II](https://leetcode.com/problems/reverse-string-ii/)
|
||||
|
||||
|
||||
## 题目:
|
||||
## 题目
|
||||
|
||||
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.
|
||||
|
||||
|
Reference in New Issue
Block a user