---
title: "Discussion on \"How to find the number of unique elements in a sorted array\" | Hashnode"
description: "Discussion on \"How to find the number of unique elements in a sorted array\". Algorithm Fridays Week 1 Solution"
url: "https://hashnode.com/posts/how-to-find-the-number-of-unique-elements-in-a-sorted-array/6073f796ef8a3517364f9458"
---

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

Discussion

# [How to find the number of unique elements in a sorted array](https://meekg33k.dev/how-to-find-the-number-of-unique-elements-in-a-sorted-array?utm_source=hashnode&utm_medium=feed)

Algorithm Fridays Week 1 Solution

Apr 12, 2021 · 5 min read · meekg33k.dev  
Read the article

-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#array](https://hashnode.com/tag/array)
-   [#technical-interview](https://hashnode.com/tag/technical-interview)
-   [#2articles1week](https://hashnode.com/tag/2articles1week)

## Written by

[Uduak Obong-Eren](https://hashnode.com/@meekg33k)

@meekg33k

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

Software Engineer | Technical Writer | Carnegie Mellon Alum

I&#39;m passionate about architecting and building scalable software systems.

## Responses 2

Markdown supported · ⌘↵ to post

[Sholanki Biswas](https://hashnode.com/@ShoBiz)

[Apr 27, 2021](https://hashnode.com/posts/how-to-find-the-number-of-unique-elements-in-a-sorted-array/6073f796ef8a3517364f9458/comment/6087bdf7a826f80aaefecbf3)

Looking forward to your algorithm challenges. The happy-path solution stuck with me because sometimes just for providing a solution, happy-path solution is chosen and the robustness is forgotten as a quick fix which leads to sleepless nights later on in a project. Thanks for the write-up!

[Patrick E Imoh](https://hashnode.com/@patrickimoh)

[Apr 13, 2021](https://hashnode.com/posts/how-to-find-the-number-of-unique-elements-in-a-sorted-array/6073f796ef8a3517364f9458/comment/6075522285f3a21e3926c9fe)

Nice one. Kudos man.
