all test cases are failed
Please correct this code (biggest number formation)
hello @anujsharmabadboy
your compare function is not correct.
for example > for input 2 21
ur compare function will order them as 212 but correct order is 221.
correct compare function
retunr p+r > r+p;
bhai mene code toh sahi kr diya lekin ek problem h
test case agar 1 h toh saari input pe sahi output h lekin agar test case 2 ya greater then 2 h toh s 2 se lekar saare test case ke galat output aa rhe h
bro ek baar ye check karo.
string ko number mein convert mat karo .directly resultant string ko compare karo .