Valid Palindrome, two ways

Try:
CALL
1 / 1

Code

The highlighted line runs next. The pill shows the live values in the running call.

Cost

Work done so far, and how the two solutions compare

The string

Dashed cells are not letters or digits

Keyboard: ← → step, Space play or pause. Up to 34 printable ASCII characters; surrounding double quotes are removed. Spaces are drawn as ␣. Java uses Character.isLetterOrDigit and C++ uses isalnum, which match the A–Z, a–z, 0–9 rule for ASCII input.