DEV Community

I Want To Learn Programming
I Want To Learn Programming

Posted on

Code Challenge of the Day: Find the unique number (medium)

Every value appears twice except one. Return the one (XOR all values).
Write single_number(nums).

Starter:

def single_number(nums):
    # TODO
    pass
Enter fullscreen mode Exit fullscreen mode

Solve it interactively in your browser (no setup), check your answer instantly, and keep your daily streak going on IWTLP: https://iwtlp.com/challenge

Top comments (0)