840. Magic Squares In Grid | Leetcode Daily Challenge | DSA | Hindi
HTML-код
- Опубликовано: 27 окт 2024
- Problem Name:
840. Magic Squares In Grid
Problem Statement:
A 3 x 3 magic square is a 3 x 3 grid filled with distinct numbers from 1 to 9 such that each row, column, and both diagonals all have the same sum.
Given a row x col grid of integers, how many 3 x 3 contiguous magic square subgrids are there?
Note: while a magic square can only contain numbers from 1 to 9, grid may contain numbers up to 15.
Problem Link:
leetcode.com/p...
Solution Link:
github.com/Tiw...
Graph Playlist:
• Graph Data Structure S...
Java Plus DSA Placement Course Playlist:
• Java and DSA Course Pl...
Java Plus DSA Sheet:
docs.google.co...
Notes:
github.com/Tiw...
Telegram Link:
shashwattiwari...
Ultimate Recursion Series Playlist:
• Recursion and Backtrac...
Instagram Handle: (@shashwat_tiwari_st)
shashwattiwari...
Samsung Interview Experience:
• I cracked Samsung | SR...
Company Tags:
Facebook | Amazon | Microsoft | Netflix | Google | LinkedIn | Pega Systems | VMware | Adobe | Samsung
Timestamp:
0:00 - Introduction
#ShashwatTiwari #coding #problemsolving
Thanks 😊, this type of matrix problem seems me more complex then graphs or Tree 😢.
Thanks for the Solution. But instead of discussing the Brute_Force/ simulating the task . Make a video on the 2nd
Part of the Editorial as that's I find tricky to understand.
@shashCode.
Like target for this video is 120. Please do like if you have understood the explanation as well the code
Target achieved
If possible please explain in C++ also
Amazing Explanation sir.
Sir i think when magic squares having distinct elements have same rows sum and cols sum then it automatically means diagonal sum is also equal. Correct me if i am wrong
tabahi
❤❤
Our questions are same everyday
Day 8 for requesting for dp series
yap we want
yes
@shashcode
Sir please upload graph lecture
Only legends know -- Phele sir ne graph ka question upload ke diya tha 😂😂
🙊
sleep coming
Please Sir give Solution to Leetcode question 71 Simplify path ,topic-Stack
@shashwat_tiwari_st