491.Increasing Subsequences
491.Increasing Subsequences
Description
Solution
Two solutions:
- DP, use
set<vector<int>>
to deduplicate - Back Tracking, don’t forget deduplicating
Code
1 | class Solution { |
Solution2 :
1 | class Solution { |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.