All the test cases are failing where is the problem in my code please help me out
Form biggest number
itβs actually simple. Just build up a custom comparator function that works as follows: - for any two numbers that if wishes to compare, it builds two numbers , say n1 and n2. Now, it builds two numbers, say x & y where x is the number built as concatenation of n1 & n2. and y is the concatenation of n2 & n1. Now, if x > y then definitely n1 should come before n2 else n2 should come before n1
can you help me to write the code
brother these are just two if conditions, you should try them out yourself and post your code, I will point out the msitakes if any.