JavaEasyStrings10 min
Reverse a String without StringBuilder
Reverse "automation" using a char array. StringBuilder.reverse() is not allowed.
Example
Input
—
Output
—
Hints (1)
- Two pointers: swap from both ends moving inward until they meet.
Reverse "automation" using a char array. StringBuilder.reverse() is not allowed.
Input
—
Output
—
Checking runner availability…