Maximum XOR
Solve a medium-level problem for finding the maximum XOR from an integer array.
Problem statement
Given an integer array nums
, return the maximum result of nums[i] XOR nums[j]
, where
Example 1
Sample input
Get hands-on with 1400+ tech skills courses.