Given an array of non-negative integers and a list of queries [xi, mi], answer each query with the maximum value of xi XOR nums[j] over all nums[j] <= mi, or -1 if no element qualifies.
Practise this challenge
All coding challenges