Preetham wants to insert the digit '1' somewhere among the digits '4', '2', '0', '1' and '9'. Where should he place the digit '1' to get the biggest possible number? What other numbers can he make by placing the digit '1'?
Given: Original digits are 4, 2, 0, 1, 9
Rule: To obtain the largest number, insert '1' before the first digit smaller than '1' when scanning from left.
Numbers formed by inserting '1': 142019 (1 at start) 412019 (1 after 4) 421019 (1 after 42) 420119 (1 after 420) 420191 (1 at end)
Answer: The biggest possible number is 421019, obtained by placing '1' between 2 and 0.
Explanation
To get the largest number, insert '1' before the first digit that is smaller than '1' (which is '0'). Hence, placing '1' between 2 and 0 yields 421019.
Solution Steps
Step 1: Original digits are 4, 2, 0, 1, 9
Step 2: Insert 1 at different positions
Step 3: 421019 (1 after 42) = biggest
Step 4: Other options: 142019, 412019, 420119, 420191