← Oracle questions

Reverse every k digits in a string

Filed under Oracle

Given a string and an integer k, reverse every block of k characters in the string. If the remaining characters are fewer than k, reverse them as well.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Oracle questions

Collected from public candidate posts and coding forums. Updated Nov 2026.