yshshrm / Data-Structures-And-Algorithms-Hacktoberfest18

List of data structures and algorithms. Feel free to contribute under Hacktoberfest '18!
204 stars 1.1k forks source link

NearestGreaterElementFromRight #1737

Open harshit-3103 opened 2 years ago

harshit-3103 commented 2 years ago

Find the Nearest Greater Element From Right Side in the given array. If in the right side no greater element then print -1.

Attached the screenshot of the output. Op