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​

Комментарии • 19

  • @RohitKumar-dz8dh
    @RohitKumar-dz8dh 2 месяца назад +3

    Thanks 😊, this type of matrix problem seems me more complex then graphs or Tree 😢.

  • @rohanjuneja1778
    @rohanjuneja1778 2 месяца назад +2

    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.

  • @shashwat_tiwari_st
    @shashwat_tiwari_st  2 месяца назад +1

    Like target for this video is 120. Please do like if you have understood the explanation as well the code

  • @shubham6811
    @shubham6811 2 месяца назад +1

    If possible please explain in C++ also

  • @iamdevil9485
    @iamdevil9485 2 месяца назад

    Amazing Explanation sir.

  • @AyushSinghOO7
    @AyushSinghOO7 2 месяца назад

    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

  • @streetfoodlover2317
    @streetfoodlover2317 2 месяца назад

    tabahi

  • @PiyushSharma-we8yd
    @PiyushSharma-we8yd 2 месяца назад

    ❤❤

  • @kushsharma862
    @kushsharma862 2 месяца назад

    Our questions are same everyday

  • @GirjeshSharma-zv3xo
    @GirjeshSharma-zv3xo 2 месяца назад +5

    Day 8 for requesting for dp series

  • @mr.nishantawasthi4402
    @mr.nishantawasthi4402 2 месяца назад

    Sir please upload graph lecture

  • @BILLIONAIRE_BOY_HARSH
    @BILLIONAIRE_BOY_HARSH 2 месяца назад +1

    Only legends know -- Phele sir ne graph ka question upload ke diya tha 😂😂

  • @saiei
    @saiei 2 месяца назад

    sleep coming

  • @srishtyvarshney9762
    @srishtyvarshney9762 2 месяца назад

    Please Sir give Solution to Leetcode question 71 Simplify path ,topic-Stack
    @shashwat_tiwari_st