Challenge 1: Single Number

In this lesson, every element appears twice except one element. Try to come up with a process to solve this. Use your XOR skills to achieve this.

Introduction

In this question, every element appears twice except one element, which is our answer.

Let’s see how to achieve this using the XOR operator.

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.