689. Maximum Sum of 3 Non Overlapping Subarrays | Leetcode Daily Challenge

Поделиться
HTML-код
  • Опубликовано: 28 дек 2024

Комментарии • 4

  • @ayushparwal2004
    @ayushparwal2004 День назад

    thanks for helping.

  • @bkjaipal1126
    @bkjaipal1126 День назад

    Well Explained!!

  • @touhidiutcse
    @touhidiutcse 18 часов назад

    Thanks for explaining.
    Instead of pure DP, I went ahead with DP+Greedy approach by initially preparing the max sub-array sum similar to what you explained here. However, next I built a left max sub-array & right sub-array;
    Furthermore, the solution was retrieved by optimally choosing the middle sub-array!
    Anyway, I have plan to learn the approach that you explained too.