Magic Squares In Grid | Simple Approach | Clean Code | Leetcode 840 | codestorywithMIK

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



Duration: 0:00
7,671 views
361


Whatsapp Community Link : https://www.whatsapp.com/channel/0029...
This is the 101st Video of our Playlist "Array 1D/2D : Popular Interview Problems" by codestorywithMIK

In this video we will try to solve a simple 2D Array Problem : Magic Squares In Grid | Simple Approach | Clean Code | Leetcode 840 | codestorywithMIK

I will explain the intuition so easily that you will never forget and start seeing this as cakewalk EASYYY.
We will do live coding after explanation and see if we are able to pass all the test cases.
Also, please note that my Github solution link below contains both C++ as well as JAVA code.

Problem Name : Magic Squares In Grid | Simple Approach | Clean Code | Leetcode 840 | codestorywithMIK
Company Tags : will update soon
My solutions on Github(C++ & JAVA) - https://github.com/MAZHARMIK/Intervie...
Leetcode Link : https://leetcode.com/problems/magic-s...


My DP Concepts Playlist :    • Roadmap for DP | How to Start DP ? | ...  
My Graph Concepts Playlist :    • Graph Concepts & Qns - 1 : Graph will...  
My Recursion Concepts Playlist :    • Introduction | Recursion Concepts And...  
My GitHub Repo for interview preparation : https://github.com/MAZHARMIK/Intervie...
Instagram :   / codestorywithmik  
Facebook :   / 100090524295846  
Twitter :   / cswithmik  
Subscribe to my channel :    / @codestorywithmik  

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

Summary :
Just simple iterate and check all possible 3*3 Grids.
1) Check uniqueness of elements in 3x3 Grid and if it contains elements from 1 to 9 only
2) Check If row sums and column sums are all equal
3) Check if diagonal and anti-diagonal sums are all equal

✨ Timelines✨
00:00 - Introduction


#coding #helpajobseeker #easyrecipes #leetcode #leetcodequestionandanswers #leetcodesolution #leetcodedailychallenge #leetcodequestions #leetcodechallenge #hindi #india #coding #helpajobseeker #easyrecipes #leetcode #leetcodequestionandanswers #leetcodesolution #leetcodedailychallenge#leetcodequestions #leetcodechallenge #hindi #india #hindiexplanation #hindiexplained #easyexplaination #interview#interviewtips #interviewpreparation #interview_ds_algo #hinglish #github #design #data #google #video #instagram #facebook #leetcode #computerscience #leetcodesolutions #leetcodequestionandanswers #code #learning #dsalgo #dsa #newyear2024




Other Videos By codestorywithMIK


2024-08-192 Keys Keyboard | Detailed Explanations | Leetcode 650 | codestorywithMIK
2024-08-18Count Substrings That Satisfy K-Constraint I & II | Detailed Explanation | Leetcode 3258 & 3261
2024-08-16Maximum Number of Points with Cost | Detailed Explanation | Leetcode 1937 | codestorywithMIK
2024-08-16The Imperial Delhi | Weekend Getaway | Luxury Stay | 5 Star hotel | WeekendWithMik
2024-08-15Maximum Distance in Arrays | Leetcode 624 | codestorywithMIK
2024-08-13Lemonade Change | Leetcode 860 | codestorywithMIK
2024-08-12Find K-th Smallest Pair Distance | Multiple Approaches | Leetcode 719 | codestorywithMIK
2024-08-11Combination Sum II | Simple Khandani Template | Leetcode 40 | codestorywithMIK
2024-08-09Minimum Number of Days to Disconnect Island | Studied Concept | Leetcode 1568 | codestorywithMIK
2024-08-09Regions Cut By Slashes | Already Studied Concept | Easy Code | Leetcode 959 | codestorywithMIK
2024-08-08Magic Squares In Grid | Simple Approach | Clean Code | Leetcode 840 | codestorywithMIK
2024-08-06Spiral Matrix III | Simple Simulation | Made Easy | Leetcode 885 | codestorywithMIK
2024-08-05Integer to English Words | Story To Code | Leetcode 273 | codestorywithMIK
2024-08-03Happy Friendship Day ❤️
2024-08-03Range Sum of Sorted Subarray Sums | Learning Something New | Leetcode 1508 | codestorywithMIK
2024-08-01Make Two Arrays Equal by Reversing Subarrays | Easy | Leetcode 1460 | codestorywithMIK
2024-07-31Minimum Swaps to Group All 1's Together II | 2 Ways | Dry Runs | Leetcode 2134 | codestorywithMIK
2024-07-29Filling Bookcase Shelves | Recursion Memoization | Why not Greedy | Leetcode 1105 | codestorywithMIK
2024-07-28Minimum Deletions to Make String Balanced | Multiple Approaches | Leetcode 1653 | codestorywithMIK
2024-07-27Count Number of Teams | Simple thought process | Intuition | Leetcode 1395
2024-07-26Second Minimum Time to Reach Destination | 2 Approaches | FULL DRY RUN | Leetcode 2045