Skip to content
RED SAGSkills
medium10 pts · first answer countsstacks-and-queues

Next greater element with a stack

For each item in [2, 1, 2, 4, 3], find the next item to its right that is strictly greater (or -1 if none). What is the result?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions