package
0.0.0-20241220224003-b7cf03a90b2b
Repository: https://github.com/szhou12/leetcode-go.git
Documentation: pkg.go.dev
# README
541. Reverse String II
Solution idea
模拟题 - 按照题意解
难点: 题目要求主要是 每一个 2*k
区间反转前k个, 所以要每2*k
一跳, 要找的也就是每 2*k
区间的起点
Time complexity = $O(n)$