Skip to content

Commit e68a691

Browse files
committed
Create README - LeetHub
1 parent edc5e2f commit e68a691

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<h2><a href="https://leetcode.com/problems/longest-increasing-subsequence/">300. Longest Increasing Subsequence</a></h2><h3>Medium</h3><hr><div><p>Given an integer array <code>nums</code>, return <em>the length of the longest <strong>strictly increasing </strong></em><span data-keyword="subsequence-array"><em><strong>subsequence</strong></em></span>.</p>
2+
3+
<p>&nbsp;</p>
4+
<p><strong class="example">Example 1:</strong></p>
5+
6+
<pre><strong>Input:</strong> nums = [10,9,2,5,3,7,101,18]
7+
<strong>Output:</strong> 4
8+
<strong>Explanation:</strong> The longest increasing subsequence is [2,3,7,101], therefore the length is 4.
9+
</pre>
10+
11+
<p><strong class="example">Example 2:</strong></p>
12+
13+
<pre><strong>Input:</strong> nums = [0,1,0,3,2,3]
14+
<strong>Output:</strong> 4
15+
</pre>
16+
17+
<p><strong class="example">Example 3:</strong></p>
18+
19+
<pre><strong>Input:</strong> nums = [7,7,7,7,7,7,7]
20+
<strong>Output:</strong> 1
21+
</pre>
22+
23+
<p>&nbsp;</p>
24+
<p><strong>Constraints:</strong></p>
25+
26+
<ul>
27+
<li><code>1 &lt;= nums.length &lt;= 2500</code></li>
28+
<li><code>-10<sup>4</sup> &lt;= nums[i] &lt;= 10<sup>4</sup></code></li>
29+
</ul>
30+
31+
<p>&nbsp;</p>
32+
<p><b>Follow up:</b>&nbsp;Can you come up with an algorithm that runs in&nbsp;<code>O(n log(n))</code> time complexity?</p>
33+
</div>

0 commit comments

Comments
 (0)