-
Notifications
You must be signed in to change notification settings - Fork 2
veci
bradendubois edited this page Nov 24, 2021
·
8 revisions
ID: veci
Difficulty: 1.8
CPU Time: 1 second
Memory: 1024 MB
One could implement methods to check all the digits of a number, do a loop to see all numbers <= 999,999 that have them, compare, etc. but the easiest way is to take X as an array of digits, and take every permutation of X, keeping a variable to track the smallest ordering that is strictly greater than the original X.