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++
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 ?
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 😊
Ok...That's also right...Thanks :-)