Every solution here makes use of the custom sort function. Is there a solution here which doesn't use it?
@piy9 If you do not or can not utilise the
sort then you can directly take advantage of the
selecting the most significant number is the core of hacking the problem.
Do you mean to say that we could implement our own sort like quicksort - and instead of comparing two numbers, compare the two strings just like in all the custom sort operations (return s1+s2 > s2+s1)
@piy9 That could also do, I think, since we are just trying to
find out the largest here.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.