LAPIN - WA Help..!!

Here is the link to my solution for LAPIN :
First I divided the char array into two halves then I sorted both and compare both for equality. But it is giving again & again WA… Please suggest changes or give some corner cases.!!


One requirement for the fourth parameter of the qsort function is that the function it points to returns an int.

Simply changing the return type of your compare to int, will solve the problem.

1 Like

@tijoforyou thanks it solved the problem :slight_smile: