Sagar's Gift
Practice
3.7 (19 votes)
Easy
Problem
89% Success 3470 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
Please login to use the editor
You need to be logged in to access the code editor
Loading...
Please wait while we load the editor
Results
Custom Input
Run your code to see the output
Submissions
Please login to view your submissions
Similar Problems
Points:20
13 votes
Tags:
Basic ProgrammingBasics of ImplementationEasyImplementation
Points:20
44 votes
Tags:
ApprovedBasic ProgrammingEasy
Points:20
19 votes
Tags:
ArraysBasic ProgrammingEasyOpen
Editorial
No editorial available for this problem.