---
title: "Discussion on \"12. Missing Number\" | Hashnode"
description: "Discussion on \"12. Missing Number\". Given an array nums containing n distinct numbers in the range [0, n], return the only number in the range that is missing from the array.\n\n\nExample 1:\nInput: nums = [3,0,1]\nOutput: 2\nExplanation: n = 3 since there are 3 numbers, so all numbers are i..."
url: "https://hashnode.com/posts/12-missing-number/62baf6d67131dfe7a8b58cee"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [12\. Missing Number](https://www.teaandtech.org/12-missing-number?utm_source=hashnode&utm_medium=feed)

Given an array nums containing n distinct numbers in the range \[0, n\], return the only number in the range that is missing from the array. Example 1: Input: nums = \[3,0,1\] Output: 2 Explanation: n = 3 since there are 3 numbers, so all numbers are i...

Jun 28, 2022 · 1 min read · teaandtech.org  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#coding](https://hashnode.com/tag/coding)

## Written by

[Shivam Bhosale](https://hashnode.com/@ShivamBhosale)

@ShivamBhosale · Mumbai, India

  
[View profile](https://hashnode.com/@ShivamBhosale)

Epochs in progress

Completed undergrad in Computer Science Engineering from SRM Institute of Science and Technology, Chennai, India, and have hands-on experience in Data Science through internships, certifications and projects I had worked on during my period at the university.

## Responses

Comments are turned off for this post.
