Merge pull request #1599 from laerpeeK/master

docs 0541.反转字符串Ⅱ.md
This commit is contained in:
程序员Carl
2022-08-29 09:42:38 +08:00
committed by GitHub

View File

@ -12,7 +12,7 @@
[力扣题目链接](https://leetcode.cn/problems/reverse-string-ii/)
给定一个字符串 s 和一个整数 k你需要对从字符串开头算起的每隔 2k 个字符的前 k 个字符进行反转
给定一个字符串 s 和一个整数 k从字符串开头算起, 每计数至 2k 个字符,就反转这 2k 个字符中的前 k 个字符。
如果剩余字符少于 k 个,则将剩余字符全部反转。