Reverse Left Words 2021-06-29 20:11

Problem Description

public String reverseLeftWords(String s, int n) {
    return s.substring(n) + s.substring(0, n);
}
Runtime Memory
0 ms 37.8 MB

henryxi leetcode list

EOF