All Nodes Distance K in Binary Tree | Approach-1 | Leetcode-863 | AMAZON | Explanation ➕ Live Coding

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



Duration: 21:59
1,363 views
75


Hi everyone, this is the 29th video of our "Binary Tree" Playlist.
In this video we will try to solve a very famous Binary Tree Qn “All Nodes Distance K in 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.
In this video, we will solve it using Approach-1 (Using Parent Pointers)


Problem Name : All Nodes Distance K in Binary Tree
Company Tags : Amazon, Citicorp, Flipkart, Goldman Sachs, Hike, Ola Cabs, Samsung, Walmart
My solutions on Github : https://github.com/MAZHARMIK/Interview_DS_Algo/blob/master/Tree/All%20Nodes%20Distance%20K%20in%20Binary%20Tree.cpp
Leetcode Link : https://leetcode.com/problems/all-nodes-distance-k-in-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/

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

#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-07-17Maximum Alternating Subsequence Sum | BOTTOM UP | INTUITION | DP Concepts & Qns - 10 | Leetcode-1911
2023-07-16Add Two Numbers II | Follow Up Qn Also | 2 Approaches | AMAZON | MICROSOFT | Leetcode-445
2023-07-16Min Cost to Connect All Points | Prim's Algorithm | META | Graph Concepts & Qns - 35 | Leetcode-1584
2023-07-16Smallest Sufficient Team | Recur + Memo | Bit Manipulation Made Easy | AMAZON | Leetcode-1125
2023-07-15Maximum Number of Events That Can Be Attended II | Recur + Memo | 2 Ways | AMAZON | Leetcode-1751
2023-07-14Consistency is the 🔑 #consistency #motivation #motivational #coding #leetcode #reels #youtubeshorts
2023-07-14Longest Arithmetic Subsequence of Given Difference | Recur + Memo | Optimal | META | Leetcode-1218
2023-07-13Maximum Alternating Subsequence Sum |Recursion & Memo|Tree Diagram|DP Concepts & Qns-9|Leetcode-1911
2023-07-12Find Eventual Safe States | 2 Approaches | Intuition | Leetcode-802 | MICROSOFT | Explanation
2023-07-11Make the most if this 6 months remaining in Year 2023 . #motivation #hardwork #motivational
2023-07-11All Nodes Distance K in Binary Tree | Approach-1 | Leetcode-863 | AMAZON | Explanation ➕ Live Coding
2023-07-10Prim's Algorithm | Minimum Spanning Tree | Full Dry Run | INTUITION | Graph Concepts & Qns - 34
2023-07-10Minimum Depth of Binary Tree | Leetcode-111 | BFS | DFS | AMAZON | Explanation ➕ Live Coding
2023-07-09CONSISTENCY is the 🔑 #consistency #motivation #hardwork #determination #coding #interview #coding
2023-07-09Substring With Largest Variance | Full Dry Run | Leetcode-2272 | AMAZON, GOOGLE | Explanation
2023-07-08Put Marbles in Bags | Full Intuition | Dry Run | Leetcode-2551 | AMAZON | Explanation ➕ Live Coding
2023-07-07Maximize the Confusion of an Exam | 3 Approaches | MICROSOFT | Leetcode-2024 | Explanation
2023-07-05Minimum Size Subarray Sum | GOOGLE | AMAZON | Leetcode-209 | Explanation ➕ Live Coding
2023-07-04Longest Subarray of 1's After Deleting One Element | Multiple Approaches | GOOGLE | Leetcode-1493
2023-07-04Single Number II | Multiple Approaches | GOOGLE, AMAZON | META | Leetcode-137 | Explanation
2023-07-03Trust the process #hardwork #confidence #coding #motivation #motivational #motivationalvideo #reels