My recursive code worked and when I memorized it it started giving me wrong result plzzz help me to fix my code will really appreciate the help
problem https://leetcode.com/problems/maximum-alternating-subsequence-sum/
my code https://ide.codingblocks.com/s/579992
Thanks in advance