Sanjaykumar-IT / dsa-problems

coding problems
0 stars 4 forks source link

Next Greater element in the given array #2

Closed Sanjaykumar-IT closed 1 year ago

Sanjaykumar-IT commented 1 year ago

Given an array, find the next greatest element and return an array return -1 if there is no greater element For Example, Input: [19, 12, 34,78,8] Output: [34,34,78,-1,-1]

Satyakoidala commented 1 year ago

@Sanjaykumar-IT , please assign this to me!

Satyakoidala commented 1 year ago

@Sanjaykumar-IT , Created PR, https://github.com/Sanjaykumar-IT/dsa-problems/pull/8

Could you please review?

Sanjaykumar-IT commented 1 year ago

done!