左旋转字符串
左旋转字符串
http://www.nowcoder.com/questionTerminal/12d959b108cb42b1ab72cef4d36af5ec
public class Solution { public String LeftRotateString(String str,int n) { if(n<0 || str==null || str.length()==0)return ""; int len = str.length(); n = n%len; str += str; String temp=str.substring(n,len+n); return temp; } }