int cmp(const void *a,const void *b) { char c[300],d[300]; int e,f; strcpy(c,((node*)a)->path); strcpy(d,((node*)b)->path); e = ((node*)a)->value; f ...
1. x1,y1,x2,y2 <------- take input 2. if x1+y1 and x2+y2 both odd or even a) if x1+y1 and x2+y2 are equal number of move is 1 b) else number of move is 2 3. else no move