Gray Similar code - codechef

Please help!! whats wrong in my code. I’m getting WA

Hey @rishit517
Apply binary search from k+1

  			if (binary_search(arr+k+1, arr + n, d)) {

There might be some case in which xor of a[i],a[j],a[k] is equal to one of them

Also use unsigned long long

#define int unsigned long long int

If this resolves your query then please mark it as resolved :slight_smile: