Convoy·Software Engineer·Technical Phone Screen
Apr 2026
Convoy coding interview for a software engineer role, focused on an in-place string compression problem. The follow-up questions were more demanding than the main problem itself.
- Given an array of characters, compress it in-place using run-length encoding: for each consecutive run of the same character, write the character followed by the run length as individual digit characters (omit the count if the run length is 1). Return the new length of the modified array. You must use O(1) extra space.
“The core problem wasn't too bad once I realized I needed two pointers, one for reading and one for writing.”