---
title: "Discussion on \"Solving Next Greater Element I\" | Hashnode"
description: "Discussion on \"Solving Next Greater Element I\". To see the question, click here.\nNaive Approach\nThe idea is to iterate through each element in nums1 and then search for this element in nums2. Once found, look for the next greater element in nums2 by scanning the elements following the found elemen..."
url: "https://hashnode.com/posts/solving-next-greater-element-i/669273793066c67c274b215d"
---

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

Discussion

# [Solving Next Greater Element I](https://vineethchivukula.hashnode.dev/solving-next-greater-element-i?utm_source=hashnode&utm_medium=feed)

To see the question, click here. Naive Approach The idea is to iterate through each element in nums1 and then search for this element in nums2. Once found, look for the next greater element in nums2 by scanning the elements following the found elemen...

Jul 13, 2024 · 5 min read · vineethchivukula.hashnode.dev  
Read the article

-   [#monotonic-stack](https://hashnode.com/tag/monotonic-stack)
-   [#nextgreaterelement](https://hashnode.com/tag/nextgreaterelement)
-   [#dsa](https://hashnode.com/tag/dsa)

## 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.
