🟢 剑指 Offer 58 - II. 左旋转字符串
LeetCode 提示
题目难度 简单
原题链接 🔗 leetcode
#
题解 1.pyclass Solution: def reverseLeftWords(self, s: str, n: int) -> str: return s[n:]+s[:n]
题目难度 简单
原题链接 🔗 leetcode
class Solution: def reverseLeftWords(self, s: str, n: int) -> str: return s[n:]+s[:n]