algorithms.tutorialhorizon.com

Construct the largest number from the given array | Algorithms

Given an array of integers, write an algorithm to construct the largest number possible by appending the array elements. Example: Given Input: [7, 78] Largest Number Possible: 787 Explanation: two possibilities are 778 and 787. 787 is larger than 778.