Maximum Level Sum of a Binary Tree | Leetcode-1161 | AMAZON | Explanation ➕ Live Coding

Subscribers:
92,300
Published on ● Video Link: https://www.youtube.com/watch?v=GWCVpTCSIFY



Duration: 20:01
1,018 views
68


Hi everyone, this is the 27th video of our "Binary Tree" Playlist.
In this video we will try to solve a classic BFS Binary Tree Qn “Maximum Level Sum of a Binary Tree”.

We will write very easy and clean code.
We will do live coding after explanation and see if we are able to pass all the test cases.


Problem Name : Maximum Level Sum of a Binary Tree
Company Tags : AMAZON
My solutions on Github : https://github.com/MAZHARMIK/Interview_DS_Algo/blob/master/Tree/Maximum%20Level%20Sum%20of%20a%20Binary%20Tree.cpp
Leetcode Link : https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/


My GitHub Repo for interview preparation : https://github.com/MAZHARMIK/Interview_DS_Algo
Subscribe to my channel : https://www.youtube.com/@codestorywithMIK
Instagram : https://www.instagram.com/codestorywithmik/
Facebook : https://www.facebook.com/people/codestorywithmik/100090524295846/

Timestamps -
0:00 Introduction
1:40 Intution
2:01 BFS Approach
6:22 BFS CODE
9:31 DFS Approach
17:16 DFS code

╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗
║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣
╠╗║╚╝║║╠╗║╚╣║║║║║═╣
╚═╩══╩═╩═╩═╩╝╚╩═╩═╝

#coding #helpajobseeker #easyrecipes #leetcode #leetcodequestionandanswers #leetcodesolution #leetcodedailychallenge #leetcodequestions #leetcodechallenge #hindi #india #hindiexplanation #hindiexplained #easyexplaination #interview #interviewtips
#interviewpreparation #interview_ds_algo #hinglish




Other Videos By codestorywithMIK


2023-06-20Minimum Cost to Make Array Equal | Simplest Solution | MICROSOFT | Leetcode-2448 | Explanation
2023-06-20House Robber I | Constant Space | DP Concepts & Qns - 7 | Leetcode-198
2023-06-20Nothing can stop you #motivation #reels #motivational #hardwork #reels #motivationalvideo #leetcode
2023-06-20K Radius Subarray Averages | Sliding Window | Leetcode-2090 | AMAZON | Explanation ➕ Live Coding
2023-06-20K Radius Subarray Averages | Leetcode-2090 | AMAZON | Explanation ➕ Live Coding
2023-06-18Minimum Spanning Tree | Easy Theory Full Detail | Amazon, Microsoft | Graph Concepts & Qns - 33
2023-06-18Number of Increasing Paths in a Grid | DFS + Memo | ADOBE, MICROSOFT | Leetcode-2328 | Live Code
2023-06-17Happy Father’s Day ❤️ #happyfathersday #fathersday #sacrifice #father
2023-06-17Make Array Strictly Increasing | Recur + Memo | Time Complexity | GOOGLE | Leetcode-1187 | Live Code
2023-06-16Number of Ways to Reorder Array to Get Same BST | Pascal's triangle | GOOGLE | Leetcode-1569
2023-06-14Maximum Level Sum of a Binary Tree | Leetcode-1161 | AMAZON | Explanation ➕ Live Coding
2023-06-13Minimum Absolute Difference in BST | Leetcode-530 | GOOGLE | Explanation ➕ Live Coding
2023-06-13House Robber II | BOTTOM UP | DP Concepts & Qns - 6 | Leetcode-213
2023-06-12Equal Row and Column Pairs | Leetcode-2352 | Google, Microsoft | Explanation ➕ Live Coding
2023-06-11Summary Ranges | Leetcode-228 | GOOGLE | Explanation ➕ Live Coding
2023-06-11Snapshot Array | Full Thought Process | Microsoft, Amazon | Leetcode-1146 | Live Code
2023-06-10Maximum Value at a Given Index in a Bounded Array | Detailed Explanation | GOOGLE | Leetcode-1802
2023-06-09Wo Agayaaa 👀😍 #leetcode #shortestpath #meme #funny #comedy #laugh #reels
2023-06-09Can Make Arithmetic Progression From Sequence | O(1) Space | GOOGLE | Leetcode-1502 | Explanation
2023-06-08Find Smallest Letter Greater Than Target | Binary Search | Leetcode - 744 | LinkedIn | Explanation
2023-06-08Count Negative Numbers in a Sorted Matrix | Leetcode-1351 | 3 Approaches | AMAZON | Explanation