Skip to content

Commit e128754

Browse files
Create README - LeetHub
1 parent 4d3e067 commit e128754

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

0739-daily-temperatures/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<h2><a href="https://leetcode.com/problems/daily-temperatures">739. Daily Temperatures</a></h2><h3>Medium</h3><hr><p>Given an array of integers <code>temperatures</code> represents the daily temperatures, return <em>an array</em> <code>answer</code> <em>such that</em> <code>answer[i]</code> <em>is the number of days you have to wait after the</em> <code>i<sup>th</sup></code> <em>day to get a warmer temperature</em>. If there is no future day for which this is possible, keep <code>answer[i] == 0</code> instead.</p>
2+
3+
<p>&nbsp;</p>
4+
<p><strong class="example">Example 1:</strong></p>
5+
<pre><strong>Input:</strong> temperatures = [73,74,75,71,69,72,76,73]
6+
<strong>Output:</strong> [1,1,4,2,1,1,0,0]
7+
</pre><p><strong class="example">Example 2:</strong></p>
8+
<pre><strong>Input:</strong> temperatures = [30,40,50,60]
9+
<strong>Output:</strong> [1,1,1,0]
10+
</pre><p><strong class="example">Example 3:</strong></p>
11+
<pre><strong>Input:</strong> temperatures = [30,60,90]
12+
<strong>Output:</strong> [1,1,0]
13+
</pre>
14+
<p>&nbsp;</p>
15+
<p><strong>Constraints:</strong></p>
16+
17+
<ul>
18+
<li><code>1 &lt;=&nbsp;temperatures.length &lt;= 10<sup>5</sup></code></li>
19+
<li><code>30 &lt;=&nbsp;temperatures[i] &lt;= 100</code></li>
20+
</ul>

0 commit comments

Comments
 (0)