Maximum Alternating Subsequence Sum

mediumSolve on LeetCodeLast edited: September 29, 2025