Longest-Increasing-Subsequence
LeetCode 334: Increasing Triplet Subsequence
·2 mins
LeetCode
Medium
Array
Greedy
Longest-Increasing-Subsequence
LeetCode 334 note: keep the smallest first and the smallest second that has something smaller before it; any number above second completes a triplet
LeetCode 944: Delete Columns to Make Sorted
·1 min
LeetCode
Easy
Array
String
Longest-Increasing-Subsequence
LeetCode 944 note: take each column with zip(*strs) and count the columns that are not non-decreasing