Maximum sum of hourglass | Gfg potd | 25-04-2024 | GFG Problem of the day

Поділитися
Вставка
  • Опубліковано 23 кві 2024
  • Geeks for Geeks Problem of the Day(POTD) in C++ | Maximum sum of hourglass | Fully Explained🧠
    Solution Code :
    github.com/IshanSawhney/GfG_P...
    IMPORTANCE OF DSA FOR PLACEMENT:
    • Is DSA Still Important...
    BEST FREE WEB DEVELOPMENT COURSE:
    • BEST Web development c...
    🌐 Connect with Me:
    GitHub: github.com/IshanSawhney
    Linkedin: www.linkedin.com/in/ishansawhney
    #GFG #POTD #geeksforgeeks #problemoftheday #c++

КОМЕНТАРІ • 3

  • @AdityaSingh-nu4jl
    @AdityaSingh-nu4jl 18 днів тому +1

    why u have taken max of sum and current sum bcz current sum to hmeha kuch na kuch grater value return krega i.e. greater than -1 ?

    • @CodeGenius316
      @CodeGenius316  18 днів тому +2

      Good question brother but the answer is very simple...for the safe side we have used it because sometimes matrix may contain negative values but in the question it is said to return maximum sum 😊

    • @AdityaSingh-nu4jl
      @AdityaSingh-nu4jl 17 днів тому

      Ok...That's also right...Thanks :-)