← Questions

Sort strings by length, then merge two sorted lists

0
AppleCodingLast asked Sep 2025

Given two unsorted lists of strings, sort them by string length. Follow-up: if both lists already arrive sorted by length, merge them into one sorted list in linear time.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding