题解 | #平衡二叉树#
左旋转字符串
http://www.nowcoder.com/practice/12d959b108cb42b1ab72cef4d36af5ec
-- coding:utf-8 --
class Solution:
def LeftRotateString(self, s, n):
return s[n:]+s[0:n]
左旋转字符串
http://www.nowcoder.com/practice/12d959b108cb42b1ab72cef4d36af5ec
class Solution:
def LeftRotateString(self, s, n):
return s[n:]+s[0:n]
相关推荐