Back to all patterns

Greedy / DP

1 problems • Practice on LeetCode to earn credits

About This Pattern

Master the Greedy / DP pattern by practicing these problems organized by difficulty.Focus on the Key Signals - these are the indicators that tell you when to use this pattern.

Medium (1)

Wiggle Subsequence

Find the length of the longest subsequence that is a wiggle sequence.

Key Signals:

SubsequenceAlternating patternState tracking