---
title: "Discussion on \"Distinct numbers\" | Hashnode"
description: "Discussion on \"Distinct numbers\". You are given a list of N integers, and your task is to calculate the number of distinct values in the list.\nInput\nThe first input line has an integer n: the number of values.\nThe second line has the integers x1,x2,…,xn.\nOutput\nPrint one integer: the..."
url: "https://hashnode.com/posts/distinct-numbers/65cc1b4c1817c53f3cf8ce50"
---

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

Discussion

# [Distinct numbers](https://ramandeepsingh.hashnode.dev/distinct-numbers?utm_source=hashnode&utm_medium=feed)

You are given a list of N integers, and your task is to calculate the number of distinct values in the list. Input The first input line has an integer n: the number of values. The second line has the integers x1,x2,…,xn. Output Print one integer: the...

Feb 14, 2024 · 1 min read · ramandeepsingh.hashnode.dev  
Read the article

## Written by

[Ramandeep Singh](https://hashnode.com/@ramandeepSingh)

@ramandeepSingh · Rajasthan, India

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

Enlivening the Dreams :D

A programming enthusiast trying to give share my knowledge with the community :D

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
