Reverse Left Words 2021-06-29 20:11
public String reverseLeftWords(String s, int n) {
return s.substring(n) + s.substring(0, n);
}
Runtime | Memory |
---|---|
0 ms | 37.8 MB |
EOF
public String reverseLeftWords(String s, int n) {
return s.substring(n) + s.substring(0, n);
}
Runtime | Memory |
---|---|
0 ms | 37.8 MB |
EOF