Largest int from concatenated ints: Difference between revisions
Content added Content deleted
(Frink) |
m (→{{header|J}}: document the algorithm) |
||
Line 990: | Line 990: | ||
=={{header|J}}== |
=={{header|J}}== |
||
Here we use the "pad the integers to the same size by repeating the digits then sort using these repeated integers as a sort key" approach: |
|||
'''Solution:''' |
'''Solution:''' |
||
<lang j>maxlen=: [: >./ #&> |
<lang j>maxlen=: [: >./ #&> |