class Solution {
public String dynamicPassword(String password, int target) {
return password.substring(target) + password.substring(0 , target);//n之后的字符串拼接n之前的字符串
}
}
LCR 182. 动态口令
最新推荐文章于 2024-08-29 18:44:48 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
class Solution {
public String dynamicPassword(String password, int target) {
return password.substring(target) + password.substring(0 , target);//n之后的字符串拼接n之前的字符串
}
}