Question 1
Input: 41 24 65 57 93 40 37 31
Step 1: Even numbers (sorted): 24 40
Step 2: Odd numbers (sorted): 31 37 41 57 65 93
Step 3: Combine (evens then odds): 24 40 31 37 41 57 65 93
What is the final output?
Even numbers first (sorted ascending), then odd numbers (sorted ascending): 24 40 31 37 41 57 65 93