Minimum Absolute Difference in BST | Leetcode-530 | GOOGLE | Explanation ➕ Live Coding

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



Duration: 18:02
1,426 views
78


Hi everyone, this is the 2nd video of our "Binary Search Tree" Playlist.
In this video we will try to solve an Easy but quite good Qn “Summary Ranges”.

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 : Minimum Absolute Difference in BST
Company Tags : Google
My solutions on Github : https://github.com/MAZHARMIK/Interview_DS_Algo/blob/master/Tree/BST/Minimum%20Absolute%20Difference%20in%20BST.cpp
Leetcode Link : https://leetcode.com/problems/minimum-absolute-difference-in-bst/


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/

Highlights:
0:00 Introduction
1:15 Intuition
4:42 "IMPORTANT TECHNIQUE" to solve Multiple BST questions. Example : Validate BST
5:16 how to find the minimum abs difference without extra space?
5:28 code for InOrder of tree
8:23 before visiting the right node we assign the previous node to Root
14:38 TIME COMPLEXITY - O(N)
14:43 Code
17:21 Using prev as a global variable.

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

#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-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
2023-06-07Minimum Flips to Make a OR b Equal to c | 2 Approaches | Microsoft | Leetcode-1318 | Explanation