Problem · String
Interleave Equal-Length Strings by Column
Learn this problemProblem statement
Given three equal-length strings, build a new string by taking the character at index 0 from all three strings, then the character at index 1 from all three strings, and so on.
Function
interleaveStrings(first: String, second: String, third: String) → StringExamples
Example 1
first = "abc"second = "def"third = "ghi"return = "adgbehcfi"Reading each column produces adg, then beh, then cfi.
More Upstart problems
- Coordinate Bounding BoxOA · Seen Jul 2026
- Increase Exclamations and Convert PeriodsOA · Seen Jul 2026
- Scale Ingredient QuantitiesOA · Seen Jul 2026
- Bounding Box from CoordinatesOA · Seen May 2026
- Filter by Threshold and Return Name with Max ScoreOA · Seen May 2026
- Filter Odds and Reverse EvensOA · Seen May 2026
- Find the Wrong Digit Index in a SumOA · Seen May 2026