โ† Citi questions

Prefix reverse operations on a string

Filed under Citi

The question

Given a string and an integer x, perform a reversal of the prefix from index 0 to x exactly x times and return the final string.

No write-up yet. Related questions below have one.

Related Citi questions

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