Sagar's Gift
Practice
3.7 (19 votes)
Easy
Problem
89% Success 3468 Attempts 20 Points 1s Time Limit 256MB Memory 1024 KB Max Code
Today is Sagar's birthday. He got array of numbers as a gift by his father. His father told him that he has another gift if Sagar is able make largest number by concatenating the numbers and swapping the digits of numbers. Help Sagar to make largest number from the given numbers.
Input:
First line contains number of testcases T Next line contain value of number of values in array N Followed by N space separated number
Output:
Output the answer.
Constraint :
1<= T <=10
1<= N <=100
1<= a[i] <= 10000
Submissions
Please login to view your submissions
Similar Problems
Points:20
836 votes
Tags:
Ad-HocSimulationEasyMathematicsOpenApprovedMathamatics
Points:20
11 votes
Tags:
Basic ProgrammingBasics of ImplementationEasyGrammar-VerifiedImplementationJavaOOPSOOPsPythonpython
Points:20
29 votes
Tags:
Ad-HocAlgorithmsBasic ProgrammingBasics of ImplementationEasyImplementation
Editorial
No editorial available for this problem.