Skip to main content

🟢 剑指 Offer 58 - II. 左旋转字符串

LeetCode 提示

题目难度 简单

原题链接 🔗 leetcode

题解 1.py#

class Solution:    def reverseLeftWords(self, s: str, n: int) -> str:        return s[n:]+s[:n]