LAPIN - WA Help..!!

c
easy
lapin
practice

#1

Here is the link to my solution for LAPIN : http://www.codechef.com/viewsolution/3276217
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.!!


#2

@abinash_dexter

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.


#3

@tijoforyou thanks it solved the problem :slight_smile: