Talk:Next highest int from digits: Difference between revisions
Content added Content deleted
(→Ambiguities in task statement: Great, thanks.) |
(Using Permutations) |
||
Line 46: | Line 46: | ||
:Thanks Hout. I've added your phrasing to. Hopefully between them people will be able to more easily comprehend. Ta. --[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 17:13, 21 February 2020 (UTC) |
:Thanks Hout. I've added your phrasing to. Hopefully between them people will be able to more easily comprehend. Ta. --[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 17:13, 21 February 2020 (UTC) |
||
==Using Permutations== |
|||
Don't sort the permutations and then search for the specified condition. Map the permutations subtracting the original value. Reduce the Map to the smallest result greater than -1. If the final result is 0 return 0 else return the original value plus the final result.--[[User:Nigel Galloway|Nigel Galloway]] ([[User talk:Nigel Galloway|talk]]) 14:46, 22 February 2020 (UTC) |