Equal Row and Column Pairs | Leetcode-2352 | Google, Microsoft | Explanation ➕ Live Coding

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



Duration: 19:59
1,287 views
73


Hi everyone, this is the 5th video of our Hash Map/Set Playlist.
In this video we will try to solve a Medium but quite easy and good Qn “Equal Row and Column Pairs”.

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 : Equal Row and Column Pairs
Company Tags : Google, Microsoft
My solutions on Github : https://github.com/MAZHARMIK/Interview_DS_Algo/blob/master/HashMap/Equal%20Row%20and%20Column%20Pairs.cpp
Leetcode Link : https://leetcode.com/problems/equal-row-and-column-pairs/


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
8:22 how to write the order of inner (For loop) to compare the elements of row and column.
8:51 Brute Force [ Time compleixty = O(n^3) ]
9:13 optimal approach using map T.C - O(n^2)
14:27 unordered map search operation (O(1) Avg time complexity)
14:33 unordered_map fail when used with a vector as key
14:44 map search operation (O(log n) time complexity)
15:40 Code
18:32 Java code in comments

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

#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-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
2023-06-05Can Make Arithmetic Progression From Sequence | 2 Approaches | GOOGLE | Leetcode-1502
2023-06-04Check If It Is a Straight Line | AMAZON | Leetcode-1232 | Explanation ➕ Live Coding