Number of Provinces - (Google, Microsoft,Amazon) | DFS | Graph Concepts & Qns - 10 |Explanation-Code VIDEO
Hi Everyone, this is the 10th video of our Playlist "Graph Concepts & Qns".
Today we will finally solve a Leetcode Qn on Graph after studying some concepts on Graph in this playlist.
We will try to solve "Number of Provinces" (Leetcode-547)
Now that I have taught DFS, BFS of Graph, this Qn is nothing but just writing DFS and BFS.
In this video we will solve it using DFS and in the upcoming video, we will solve it using BFS.
Problem Name : Number of Provinces
Topic : Graph
Video : 10
Company Tags : Google, Microsoft,Amazon
My Solutions on Github : https://github.com/MAZHARMIK/Interview_DS_Algo/blob/master/Graph/BFS_DFS/Number%20of%20Provinces.cpp
Leetcode Link : https://leetcode.com/problems/number-of-provinces/
GfG Link : https://practice.geeksforgeeks.org/problems/number-of-provinces/1
My GitHub Repo for interview preparation : https://github.com/MAZHARMIK/Interview_DS_Algo
Subscribe to my channel : https://www.youtube.com/@codestorywithMIK
Pointers :
Intro - (00:00)
Gyaan - (00:10)
Recap : (00:48)
Understand The Qn : (01:23)
Make Story : (04:52)
Live Coding on Leetcode: (12:21)
╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗
║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣
╠╗║╚╝║║╠╗║╚╣║║║║║═╣
╚═╩══╩═╩═╩═╩╝╚╩═╩═╝
#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-01-10 Minimum Time to Collect All Apples in a Tree - (Microsoft) : Explanation ➕ Live Coding 2023-01-10 Course Schedule - (Apple, Microsoft,Amazon) | DFS | Graph Concepts & Qns - 14 | Explanation+Coding 2023-01-09 Same Tree - (Google, Adobe, Meta, Amazon, Uber, Bloomberg) : Explanation ➕ Live Coding 2023-01-09 Course Schedule-II : (Apple, Microsoft,Amazon) | BFS | Graph Concepts & Qns - 13 |Explanation+Coding 2023-01-09 Binary Tree Preorder Traversal - (Microsoft, Walmart, Flipkart, Amazon) : Explanation ➕ Live Coding 2023-01-08 Course Schedule - (Apple, Microsoft,Amazon) | BFS | Graph Concepts & Qns - 12 | Explanation+Coding 2023-01-08 Max Points on a Line -(Google, Apple, LinkedIn, Amazon) : Explanation ➕ Live Coding 2023-01-06 Gas Station (Google, Amazon, Uber, Microsoft, FactSet, Zoho, Flipkart) : Explanation ➕ Live Coding 2023-01-06 Number of Provinces - (Google, Microsoft,Amazon) | BFS | Graph Concepts & Qns - 11 |Explanation-Code 2023-01-05 Maximum Ice Cream Bars (Apple, Meta, Microsoft, Amazon) : Explanation ➕ Live Coding 2023-01-05 Number of Provinces - (Google, Microsoft,Amazon) | DFS | Graph Concepts & Qns - 10 |Explanation-Code 2023-01-05 Minimum Number of Arrows to Burst Balloons (Google, Facebook, Microsoft) : Explanation ➕ Live Coding 2023-01-04 Graph Concepts & Qns - 9 (Flipkart, Amazon, Microsoft...) : Detect Cycle in Directed Graph using BFS 2023-01-04 Minimum Rounds to Complete All Tasks : Explanation ➕ Live Coding 🧑🏻💻👩🏻💻 2023-01-03 Graph Concepts & Qns - 8 (Amazon, Microsoft..) : Kahn's Algorithm(Topological Sort using BFS) 2023-01-02 Delete Columns to Make Sorted - (MICROSOFT) : Explanation ➕ Live Coding🧑🏻💻👩🏻💻 2023-01-02 Graph Concepts & Qns - 7 (Microsoft, Accolite, Amazon, Flipkart) : Topological Sort using DFS 2023-01-02 Detect Capital -(GOOGLE) : Explanation ➕ Live Coding 🧑🏻💻👩🏻💻 2023-01-01 Word Pattern -(Amazon, MakeMyTrip, Microsoft) : Explanation ➕ Live Coding 2022-12-31 Graph Concepts & Qns - 6 (Flipkart, Amazon, Microsoft...) : Detect Cycle in Directed Graph using DFS 2022-12-30 Unique Paths III -(Apple, Amazon, Microsoft, Intuit) : Explanation ➕ Live Coding