---
title: "Discussion on \"Nearest Smallest Element, Classical Stack Problem\" | Hashnode"
description: "Discussion on \"Nearest Smallest Element, Classical Stack Problem\". In this post, we talk through the classical problem: \"Nearest Smallest Element\" and how to solve it efficiently using a stack."
url: "https://hashnode.com/posts/nearest-smallest-element-classical-stack-problem/639cc80c820a13c39ee0101f"
---

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

Discussion

# [Nearest Smallest Element, Classical Stack Problem](https://blog.garybricks.com/nearest-smallest-element-classical-stack-problem?utm_source=hashnode&utm_medium=feed)

In this post, we talk through the classical problem: "Nearest Smallest Element" and how to solve it efficiently using a stack.

Dec 16, 2022 · 5 min read · blog.garybricks.com  
Read the article

-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#data-structures](https://hashnode.com/tag/data-structures)
-   [#competitive-programming](https://hashnode.com/tag/competitive-programming)
-   [#cpp](https://hashnode.com/tag/cpp)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[Gary Vladimir Núñez López](https://hashnode.com/@yragi-san117)

@yragi-san117 · Oaxaca, México

  
[View profile](https://hashnode.com/@yragi-san117)

Front End Software Developer

👋 Front-End Developer with a flair for competitive programming &amp; robotics. Expert in 3D CAD design, YouTube educator. Innovating from Oaxaca, México.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
