← BNY Mellon questions
CodingHard

Arrange strings with no consecutive initials

Filed under BNY Mellon

Given a list of strings, rearrange them such that no two adjacent strings start with the same character. If multiple valid arrangements exist, any one is acceptable. If no such arrangement is…

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 BNY Mellon questions

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