All Nodes Distance K in Binary Tree | Approach-1 | Leetcode-863 | AMAZON | Explanation ➕ Live Coding
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