Form Biggest Number

Not able to solve this problem,tried doing sorting the numbers on the basis of their first digit but fails on some input test cases

@sharad1103 For this problem you can treat the array’s elements as strings and sort them in lexicographically decreasing order. For eg. [54, 546, 548, 60] if you sort these in lexicographically decreasing order taking them as string result will be [60, 548, 546, 54] , then you can print all the elements and it will form the biggest number.

Hope this helps :slightly_smiling_face: