I am not able to understand what error is being displayed.Please help.
Form biggest no
@srshubhi398 return type of compare function is always BOOL, not INT. In the compare function, you dont pass the entire array, but just 2 elements at a time are passed
so I just need to change the data type to bool?
this also needs to change
Thankyou so much.But I wanted to ask was my logic correct?As I had also tried to join the arrays to one another and then sort and find the answer?
Hi @srshubhi398 yes the logic was similar, but as you can see its much easier dealing with strings and your program had some syntax mistakes as well
1 Like
Yes I noticed that.Thanks a lot

1 Like
