Question 1
Input: 20 30 22 13 94 21 39 54
Step 1: Even numbers (sorted): 20 22 30 54 94
Step 2: Odd numbers (sorted): 13 21 39
Step 3: Combine (evens then odds): 20 22 30 54 94 13 21 39
What is the final output?
Even numbers first (sorted ascending), then odd numbers (sorted ascending): 20 22 30 54 94 13 21 39