Common Elements of a Matrix | Geeks for Geeks | Hindi | Problem Solving | FAANG | Shashwat

Поділитися
Вставка
  • Опубліковано 16 жов 2024
  • Java Plus DSA Complete Placement Course:
    • Java and DSA Course Pl...
    Problem Statement:
    Given an m x n matrix, find all common elements present in all rows in O(mn) time and one traversal of matrix.
    Problem Link:
    www.geeksforge...
    Solution Snippet:
    github.com/Tiw...
    Company Tags:
    Facebook | Amazon | Microsoft | Netflix | Google | LinkedIn | Pega Systems | VMware | Adobe
    Instagram Handle: (@shashwat_tiwari_st)
    shashwattiwari...
    #ShashwatTiwari #coding​​ #problemsolving​ #leetcode​ #hackerrank​ #hackerearth​ #codechef​ #codesignal​ #algorithms​ #javaprogramming​ #sde​ #placement #programming

КОМЕНТАРІ • 36

  • @shashwat_tiwari_st
    @shashwat_tiwari_st  Рік тому

    This is a very old video, for better sound and camera quality DSA videos, learn from the below playlist!
    Java Plus DSA ( Java + DSA + Problem Solving )
    ua-cam.com/play/PLQ7ZAf76c0ZPVdhV1bAjFv0bQc1xHURzE.html

  • @VishalKr-m3m
    @VishalKr-m3m 8 місяців тому +1

    katai jeher ekdam maja aa gaya bhai itna acha explain kiye ho ki kya hi bole Thanks

  • @sadhanapatel1462
    @sadhanapatel1462 2 місяці тому

    Thank you bhaiya

  • @warfarecreations379
    @warfarecreations379 2 роки тому +3

    Underrated

  • @ravikantmaurya1979
    @ravikantmaurya1979 3 роки тому +2

    Whenever I stuck at any problem I directly jump to your videos.....Really it's a very good way of explaining the things.....continue this

  • @seesagar
    @seesagar 2 роки тому

    😁Thank you

  • @manavmody4959
    @manavmody4959 3 роки тому +3

    Your videos ensure the best solution and explanation. No need to watch other solutions!
    But sir, i always end up watching the solution as i am unable to solve the DSA problems by my own.. Is it normal?

    • @shashwat_tiwari_st
      @shashwat_tiwari_st  3 роки тому +1

      Thanks 😃, yeah don't worry it's very normal. Coding is something which will require a lot of practice, you just have to keep practicing. Best of luck ✌

    • @manavmody4959
      @manavmody4959 3 роки тому +1

      @@shashwat_tiwari_st Glad to have a reply! Your channel is damn underrated, but don't stop making videos, one day the UA-cam algorithm may realise how much you deserve! Thankful❤

    • @shashwat_tiwari_st
      @shashwat_tiwari_st  3 роки тому +1

      @@manavmody4959 thankyou brother

    • @dhananjayjadhav7064
      @dhananjayjadhav7064 3 роки тому +1

      Same here bro 😊

    • @dhananjayjadhav7064
      @dhananjayjadhav7064 3 роки тому

      @@shashwat_tiwari_st thank you sir 😎

  • @dhananjayjadhav7064
    @dhananjayjadhav7064 3 роки тому +1

    You are such a great man
    Keep it up 😎😎😎😎

  • @rohandevaki4349
    @rohandevaki4349 2 роки тому

    you have used the same approach that is written in gfg problem solution?

  • @sriramr1981
    @sriramr1981 Рік тому

    How to sort the output in ascending order ji 🙂 Thanks in advance. Please reply me.

  • @rachit2982
    @rachit2982 Рік тому

    Please make a video on "find a specific pair on matrix" it is given on gfg as hard problem

  • @rohandevaki4349
    @rohandevaki4349 2 роки тому +1

    start at 0:47

  • @utsavsai6052
    @utsavsai6052 2 роки тому

    NICE SOLUTION BRO,KEEP UP THE GOOD WORK

  • @vasugaur1283
    @vasugaur1283 3 роки тому

    great content broooo....keeep it up buddy😉💯💯💯💯

  • @xd9050
    @xd9050 2 роки тому

    but bro some interviewers will not allow u to use map.is it true?

  • @dhananjayjadhav7064
    @dhananjayjadhav7064 3 роки тому +1

    Sir pls make vidio on
    Rotate Matrix by 90 degrees with clockwise of anticlockwise
    Pls sir make it fastly 😊😊

    • @shashwat_tiwari_st
      @shashwat_tiwari_st  3 роки тому

      Already made on this.
      See here.
      ua-cam.com/video/vMXoMRGsjvg/v-deo.html
      Don't know why youtube is not showing some of my videos.🥲

    • @dhananjayjadhav7064
      @dhananjayjadhav7064 3 роки тому

      @@shashwat_tiwari_st thank you so much sir 😊😊

  • @anorophile2841
    @anorophile2841 Рік тому

    Hi, it's a very nice solution you have provided but your logic is not working for inputs such as 1 2 1 2 , 2 2 2 1 , 2 1 2 2, 2 1 1 1

  • @sadhanapatel1462
    @sadhanapatel1462 2 місяці тому

    Time complexity nhi bataya aapne

  • @pushkarsharma5447
    @pushkarsharma5447 3 роки тому +1

    sir if I want to solve without data structure how to do plz make videos

    • @shashwat_tiwari_st
      @shashwat_tiwari_st  3 роки тому

      Okay, I will share a self explanatory code with you.

    • @pushkarsharma5447
      @pushkarsharma5447 3 роки тому +1

      Ok

    • @shashwat_tiwari_st
      @shashwat_tiwari_st  3 роки тому

      @@pushkarsharma5447 github.com/Tiwarishashwat/InterviewCodes/blob/main/CommonMatrixElements.java see the 2nd code, it is without data structure. The approach is similar to the one discussed in the video.

    • @pushkarsharma5447
      @pushkarsharma5447 3 роки тому

      Thanks bhaiya
      Code in c
      #include
      int seen(int array[],int element,int end)
      {
      for(int i=0;i

    • @pushkarsharma5447
      @pushkarsharma5447 3 роки тому +1

      Bhai actually I am mtech datascience iit g student I am from mechanical branch in btech so If u can share something thru which I can clear my doubt from u
      Thanks in advance