Trapping Rain Water | gfg potd | 12-01-25 | GFG Problem of the day

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

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

  • @CodeGenius316
    @CodeGenius316  День назад +8

    Guys listen Carefully ⚠️
    In this question the brute force approach is the main and important approach of this problem as this only lays the foundation of why we are taking LeftMax and RightMax and why we are checking which is smaller than arr[i] or arr[j]
    SO I want you all to understand carefully and code the brute force approach by your own and you can EVEN SUBMIT it also it'll be accepted also because it's the main approach....the optimal one is just the optimization of that main logic...you can understand the optimal approach by just 1-2 dry runs...but main one is that brute force one ❤️🗿

  • @salmaniproductions1104
    @salmaniproductions1104 14 часов назад

    Very simply explained !! Thank you so muhc bhai. Thank youu.

  • @nandinigupta3836
    @nandinigupta3836 20 часов назад

    Amazing❤

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

    Nice Maza aa gaya bhai 🎉❤

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

    thanks bhai

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

    🙌

  • @Rr-lh2ru
    @Rr-lh2ru 6 часов назад

    I can't see yesterday question potd so I can't do i found my streak break i use time machine I'm eligible for reward?