
Sort Sorted Groups
You are given a list of integers, and your goal is to perform the following steps:
- Identify and group together all the sorted sequences within the list. A sorted sequence is a group of numbers that are arranged in either ascending or descending order.
- Sort the input list by these groups while preserving the relative order of elements within each group.
- Return the sorted list with the groups unpacked, meaning that the individual...
You should be an authorized user in order to see the full description and start solving this mission.