689. Maximum Sum of 3 Non-Overlapping Subarrays | O(1) space | 2 Approaches | Sliding Window Hard

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

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

  • @krushna6847
    @krushna6847 3 дня назад +3

    I got the solution at 6:34 , thank you so much aryan bhai..

  • @InWonderland-z2l
    @InWonderland-z2l 3 дня назад

    love this!! more please

  • @Its_Shubham_Negi
    @Its_Shubham_Negi 4 дня назад +3

    i knew something was cooking 🔥

  • @ARYANMITTAL
    @ARYANMITTAL  4 дня назад +15

    Okay the video can is a bit long, but i bet, no-one will cover O(1) space approach, so if you feel like, you can skip O(1) approach ❤

  • @ajayc815
    @ajayc815 3 дня назад

    😍😍😍😍😍😍😍😍😍😍😍😍😍

  • @AverageIndianDrivers
    @AverageIndianDrivers 3 дня назад +1

    aryan sir please bring the solution of 3387 pls

  • @gundanarendra3542
    @gundanarendra3542 4 дня назад +1

    Waiting for your video

  • @shubhamjain1511
    @shubhamjain1511 3 дня назад

    Hey Aryan, How should we approach this problem if instead of selecting 3 subarray, we have to select x number of subarray?? and thanks for providing such detailed solution.

    • @shauryasinghal-dt1qg
      @shauryasinghal-dt1qg 3 дня назад

      Use dynamic programming rec(i, x). - from index i...n whats the max sun i can create by choosing x subarrays of length k.

    • @shauryasinghal-dt1qg
      @shauryasinghal-dt1qg 3 дня назад

      Just try to pick ith index and not pick ith index.

  • @prajwalshaw9217
    @prajwalshaw9217 4 дня назад

    Which companies have asked this question in the last 6 months and 1 year bhaiya...?..just curious.

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

    very very long :(