Description
Solutions
Focus on Correctness (2024 NG)
π₯ FULLTIMEπRELATED PROBLEMS
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 :)
Example 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:
ππ

Related Problems
Testcase
Result
Case 1
input:
output: