---
title: "#maximum-xor-of-two-numbers-in-an-array articles | Hashnode"
description: "Explore 1 articles tagged #maximum-xor-of-two-numbers-in-an-array on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/maximum-xor-of-two-numbers-in-an-array"
---

Tag

# #maximum-xor-of-two-numbers-in-an-array

1 posts · 0 followers

[Chetan Datta](https://hashnode.com/@chetan77) · [Jan 15](https://hashnode.com/posts/maximum-xor-of-two-numbers-in-an-array/69690349d264bb6cff78f2e0)

### [Maximum XOR of Two Numbers in an Array](https://chetan77.hashnode.dev/maximum-xor-of-two-numbers-in-an-array?utm_source=hashnode&utm_medium=feed)

Problem Given an integer array nums, return the maximum result of nums\[i\] XOR nums\[j\], where 0 <= i <= j < n. (link) Example 1: Input: nums = \[3,10,5,25,2,8\] Output: 28 Explanation: The maximum result is 5 XOR 25 = 28. Example 2: Input: nums = \[14,7...

2 min read · [chetan77.hashnode.dev](https://chetan77.hashnode.dev/maximum-xor-of-two-numbers-in-an-array?utm_source=hashnode&utm_medium=feed)
