Rainfall Wait Time
Given an array of integers rainfall represents the daily rainfall levels, print an array answer such that answer[i] is the number of days you have to wait after the ith day to get a heavier rainfall. If there is no future day for which this is possible, keep answer[i] == 0 instead.
Ada AI
I want to discuss a solution
Help me solve this
Give more examples
What's wrong with my code?
How to use 'for loop' in javascript?
javascript (node 13.12.0)