Problem Brief
Focus on Correctness (2024 NG)
FULLTIMEOA
See Google online assessment and hiring insights
Given an array of digits, select up to 3 digits to form a number without changing their order. Return the largest possible number.
Note - When doing the assessment, they ask you to write your own test cases :)
1Example 1
Input
digits = [7, 2, 3, 3, 4, 9]
Output
749
Explanation
The largest number that can be formed by selecting up to 3 digits without changing their order is 749.
Constraints
Limits and guarantees your solution can rely on.
๐๐