---
title: "Discussion on \"Solving Missing Number\" | Hashnode"
description: "Discussion on \"Solving Missing Number\". To see the question, click here.\nNaive Approach\nThe idea is to sort the array and then compare the index with the number present at that index.\n// TC: O(nlogn)\n// SC: O(1)\n\nimport java.util.Arrays;\n\nclass MissingNumber {\n    public int missingNumber(..."
url: "https://hashnode.com/posts/solving-missing-number/668938fb26a31d955112903a"
---

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

Discussion

# [Solving Missing Number](https://vineethchivukula.hashnode.dev/solving-missing-number?utm_source=hashnode&utm_medium=feed)

To see the question, click here. Naive Approach The idea is to sort the array and then compare the index with the number present at that index. // TC: O(nlogn) // SC: O(1) import java.util.Arrays; class MissingNumber { public int missingNumber(...

Jul 6, 2024 · 4 min read · vineethchivukula.hashnode.dev  
Read the article

-   [#cyclic-sort](https://hashnode.com/tag/cyclic-sort)
-   [#missing-number](https://hashnode.com/tag/missing-number)
-   [#xor](https://hashnode.com/tag/xor)

## Written by

[Vineeth Chivukula](https://hashnode.com/@vineethchivukula)

@vineethchivukula · Andhra Pradesh, India

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

Developer && Video editor

There's this guy who's mad about editing and programming. It's his jam, you know?

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
