bugl
Home
Learn
Patterns
Paths
Search
Premium
Auto
Home
Learn
Patterns
Paths
Medium
1-D Dynamic Programming
LC 300
Longest Increasing Subsequence
Given an integer array nums, return the length of the longest strictly increasing subsequence.
Asked at 12 companies
Adobe
Amazon
Apple
+9 more
Hints
1.
Think about what data structure fits Longest Increasing Subsequence
2.
Consider the brute force complexity and how to optimize
3.
Can you trade space for time?
Start Puzzle
LeetCode
NeetCode