Skip to content

Commit a0d03cc

Browse files
refactor 421
1 parent 8613b2d commit a0d03cc

File tree

1 file changed

+0
-15
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-15
lines changed

src/main/java/com/fishercoder/solutions/_421.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,6 @@
33
import java.util.HashSet;
44
import java.util.Set;
55

6-
/**
7-
* Given a non-empty array of numbers, a0, a1, a2, … , an-1, where 0 ≤ ai < 231.
8-
9-
Find the maximum result of ai XOR aj, where 0 ≤ i, j < n.
10-
11-
Could you do this in O(n) runtime?
12-
13-
Example:
14-
15-
Input: [3, 10, 5, 25, 2, 8]
16-
17-
Output: 28
18-
19-
Explanation: The maximum result is 5 ^ 25 = 28.
20-
*/
216
public class _421 {
227

238
public static class Solution1 {

0 commit comments

Comments
 (0)