Largest int from concatenated ints: Difference between revisions
m
→{{header|J}}: document the algorithm
(Frink) |
m (→{{header|J}}: document the algorithm) |
||
Line 990:
=={{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:'''
<lang j>maxlen=: [: >./ #&>
|