---
title: "Discussion on \"Counting Unique Values in a Sorted Array using JavaScript: A Two-Pointer Algorithm\" | Hashnode"
description: "Discussion on \"Counting Unique Values in a Sorted Array using JavaScript: A Two-Pointer Algorithm\". Get the number of unique values from an array without using the inbuild function in javascript."
url: "https://hashnode.com/posts/counting-unique-values-in-a-sorted-array-using-javascript-a-two-pointer-algorithm/6425a962f6f242a1c3f9d4de"
---

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

Discussion

# [Counting Unique Values in a Sorted Array using JavaScript: A Two-Pointer Algorithm](https://webcentric.hashnode.dev/counting-unique-values-in-a-sorted-array-using-javascript-a-two-pointer-algorithm?utm_source=hashnode&utm_medium=feed)

Get the number of unique values from an array without using the inbuild function in javascript.

Mar 30, 2023 · 1 min read · webcentric.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#dsa](https://hashnode.com/tag/dsa)
-   [#array](https://hashnode.com/tag/array)
-   [#getuniquevalue](https://hashnode.com/tag/getuniquevalue)

## Written by

[Jyotishman Goswami](https://hashnode.com/@jyotishman421)

@jyotishman421 · Bangalore,India

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

Full Stack Developer

I am a sophomore student pursuing Computer Science. I am a Full Stack Developer &amp; I craft web applications in TypeScript, Nextjs, TailwindCSS, PostgreSQL

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
