answer is soming same but not being submitted
Cant figure out what is wrong with my code?
@manthan.joshi.jiit
u are doing a lot for a very simple question
read this code once
dry run it over some sample input
like
1
2
90 9
o/p should be 990
what is string doing in compare and why did you use xy> yx
a & b are string type
a combination of a+b and b+a must be checked and the greater needs to be returned
here a = 90 b = 9
a+b == 909
b+a == 990
hence 990 being the bigger one must be returned to form the biggest number
so
a+b > b+a
is returned since decreasing order is required