CodingReported in a candidate post, Jan 2019
Swap Alphabet Characters from Both Ends
Filed under Mentor Graphics
The question
Given a mixed string containing alphabets and other characters, swap all alphabet characters from the beginning with alphabet characters from the end in O(n) time complexity.
No write-up yet. Related questions below have one.
Related Mentor Graphics questions
Collected from public candidate posts and coding forums. Updated Nov 2026.