Closed Sanjaykumar-IT closed 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]
@Sanjaykumar-IT , please assign this to me!
@Sanjaykumar-IT , Created PR, https://github.com/Sanjaykumar-IT/dsa-problems/pull/8
Could you please review?
done!
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]