Next highest int from digits: Difference between revisions

(New draft task with python examples.)
 
Line 57:
=={{header|Python}}==
===Python: Algorithm 2===
Like Algorithm 2, but digit order is reversed for easier indexing, then reversed on return.
<lang python>def closest_more_than(n, lst):
"(index of) closest int from lst, to n that is also > n"
Line 95 ⟶ 96:
95_322_020 -> 95_322_200
9_589_776_899_767_587_796_600 -> 9_589_776_899_767_587_900_667</pre>
 
 
===Python: Algorithm 1===
Anonymous user