Day 71 of #100DaysOfCode
✅Studied Compiler Design for paper
✅Leetcode's POTD
✅Codeforces 1Q
✅Redux-Toolkit revised
⌚ : 7:40
Day_4.2 #codeforces
codeforces.com/problemset/pro…
Since we need the longest possible LEN of the alternating Seq with max sum We have to consider all alterations.
Break the array in continuous adj subarrays containing elements of 'Same Sign' then pick the maximum out of that subarray.