Reverse Alphanumeric Segments in a String
CodingPhoneSoftware EngineerReported Jun, 2026
Company question banks are included with the Insider plan.
Given a string s, reverse every maximal contiguous segment of alphanumeric characters and leave every other character exactly where it is.
A segment is a maximal run of English letters (a-z,...