3 ms·
Inserting a sorted list into another sorted list can be O(n).
by Retric 11y ago
Inserting a sorted list into another sorted list can be O(n).
- thomasahle 11y agoBut here they want to insert an unsorted list into a sorted list, which must take the same time as sorting.