Next smaller price for each ticket.
Unlock detailed company stats for this questionUpgrade
Given ticket prices, find the next smaller price for each ticket (a Daily Temperatures variant). Example: [8, 4, 6, 2, 3] -> [4, 2, 2, -1, -1].
Community answers
No answers contributed by the community yet.
Related questions
Nearest smaller element to the left for each array element.For each array element, find the distance to the next smaller element on its right.Related courses

Course

Course
Course
