Skip to content
This repository was archived by the owner on Apr 20, 2024. It is now read-only.

Commit 1631cd6

Browse files
committed
added problem74
1 parent 14ae1be commit 1631cd6

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

problem74/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# 739. Daily Temperatures
2+
3+
Given an array of integers temperatures represents the daily temperatures, return an array answer such that answer[i] is the number of days you have to wait after the ith day to get a warmer temperature. If there is no future day for which this is possible, keep answer[i] == 0 instead.
4+
5+
6+
## Example 1:
7+
8+
Input: temperatures = [73,74,75,71,69,72,76,73]
9+
Output: [1,1,4,2,1,1,0,0]
10+
11+
## Example 2:
12+
13+
Input: temperatures = [30,40,50,60]
14+
Output: [1,1,1,0]
15+
16+
## Example 3:
17+
18+
Input: temperatures = [30,60,90]
19+
Output: [1,1,0]
20+
21+
22+
## Constraints:
23+
24+
1 <= temperatures.length <= 105
25+
30 <= temperatures[i] <= 100

0 commit comments

Comments
 (0)