HEY
I would like to add one question which seems to be important from my point of view:
Ques: Next largest element to the left of an element. If there is no largest element then return -1 for that element.
Eg: 1 2 6 5 4
output: -1 -1 -1 6 5
I would like to code it in C++.
Please allow me to work on this issue @mandliya
HEY I would like to add one question which seems to be important from my point of view: Ques: Next largest element to the left of an element. If there is no largest element then return -1 for that element. Eg: 1 2 6 5 4 output: -1 -1 -1 6 5 I would like to code it in C++. Please allow me to work on this issue @mandliya