← Royal Bank of Scotland (RBS) questions

Eliminate even duplicates of letters in a string

Filed under Royal Bank of Scotland (RBS)

The question

Given a string, eliminate every even duplicate of letters present in the string (i.e., remove the 2nd, 4th, 6th occurrence of recurring characters).

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

Related Royal Bank of Scotland (RBS) questions

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