L -32 Median of a row wise sorted matrix | Java plus DSA Placement | FAANG

Поділитися
Вставка
  • Опубліковано 21 тра 2023
  • Contest Name: June Code Challenge With Shashwat
    Rules:
    1. Day1 : Create a LinkedIn or Twitter Post mentioning that you are participating in this challenge and use the hashtag #junecodechallengewithshashwat and tag me.
    LinkedIn Id: @shashwattiwari1999
    Twitter Id: @shashwatt89
    2. Comment on each of the 30 videos in 30 days.
    Example:
    Day 1 Completed on first video,
    Day 2 Completed on second video.
    .
    .
    .
    Day 30 Completed on 30th Video.
    3. Day 11 and Day 21: make a LinkedIn and twitter post mentioning your progress in the challenge, you can share your learnings. (don't forget to tag me and use the hashtag mentioned.)
    4. Day 30: Create a post mentioning that you completed this challenge!
    Prize: 1 Lucky winner will get mechanical keyboard.
    June code challenge with shashwat playlist:
    • June Code Challenge wi...
    ....................................................................................................................................................
    In this lecture, we will study about programming language, its type and memory management.
    Topics covered:
    1. Median of a row-wise sorted matrix
    Java Plus DSA Placement Course:
    • Java and DSA Course Pl...
    Notes:
    github.com/Tiwarishashwat/Jav...
    Telegram Link:
    shashwattiwari.page.link/tele...
    Ultimate Recursion Series Playlist:
    • Recursion and Backtrac...
    Instagram Handle: (@shashwat_tiwari_st)
    shashwattiwari.page.link/shas...
    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​ leetcode, ​hackerrank,​
    median of a matrix, median of a row wise sorted matrix, binary search in java, binary search on matrix, search in a matrix, find median of a matrix,
    hackerearth, codechef,​ codesignal,​ algorithms,​ javaprogramming,​ sde,​ placement, programming, programming language, java, dsa, coding, memory management, java plus dsa placement course,
    coding, programming, programmer, python, developer, code, javascript, coder, computerscience, technology, java, codinglife, html, webdeveloper, tech, webdevelopment, css, software, webdesign, softwaredeveloper, linux, programmers, softwareengineer, php, programmingmemes, machinelearning, programminglife, pythonprogramming, codingisfun, java plus dsa, java, dsa, faang, interview questions, placement course, learn in the best way

КОМЕНТАРІ • 41

  • @amansinghal4663
    @amansinghal4663 Рік тому +16

    Amazing explanation sir.... i was not able to understand this question on striver's channel, saw the comment section and someone shared your video's link to this question .... and that's how i came here.
    Keep it up man.

  • @harshaltiwari5812
    @harshaltiwari5812 11 місяців тому +3

    After watching 3-4 videos......it made me understand the concept....nice work

  • @vineetsingh4076
    @vineetsingh4076 8 місяців тому +2

    how are we making sure that assumedMedian is always a part of the matrix?

  • @anukulsahu
    @anukulsahu 9 місяців тому +1

    Best explanation in yt, better than anyone. thank u tiwari ji

  • @vivekdalai9772
    @vivekdalai9772 Місяць тому +2

    how do you make sure that the assumed median is always present in the matrix?

  • @tauhait
    @tauhait Рік тому +2

    simple and clear explanation!

  • @PiyushSharma-we8yd
    @PiyushSharma-we8yd Рік тому +1

    thanks for updated video😍

  • @sahilmishra9285
    @sahilmishra9285 Рік тому +1

    Thank you sir,very well explained

  • @aisharawat9102
    @aisharawat9102 Рік тому +1

    Great explanation 🙌

  • @amanmishra5409
    @amanmishra5409 Рік тому +1

    those who are finding it difficult to understand just watch it once (bcz on whole yt this is best) then see the code and write the code by taking help of this vdo then again go through the video you will get it deeply.

  • @chaitanyakarthik3536
    @chaitanyakarthik3536 Рік тому +1

    really amazing explanation

  • @wullar2kanyakumari412
    @wullar2kanyakumari412 Рік тому +1

    Although I watched previous video(white board one), But I will watch this video too : P

  • @varunsen2802
    @varunsen2802 Рік тому +1

    this gained you a subscriber

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

    don't forget to subscribe!!!!!

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

    watch at 1.25 for better experience

  • @worldcricket3030
    @worldcricket3030 Рік тому +1

    excellent

  • @AKASHKUMAR-li7li
    @AKASHKUMAR-li7li 4 місяці тому +1

    Mja aa gya sir ji😀😀

  • @user-lx7hd4ji8o
    @user-lx7hd4ji8o Рік тому +1

    Day 14 challenge completed #junecodechallengewithshashwat

  • @utkarshamedhekar
    @utkarshamedhekar Місяць тому +1

    aesa samjhaya h ki bacha bacha smajh jae

  • @harry-cf4ii
    @harry-cf4ii Рік тому +1

    Had a doubt what to know before doing arraylist and linkedlist my exams are cominy so can u pls list the pre requisites before these topics sir??

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

      Java dsa sheet out hai, topics order wise hi hai. LinkedList ke pehle, you need to know Oops concepts, recursion and basics to hai hi.

  • @antrikshsharma2575
    @antrikshsharma2575 Рік тому +2

    minium remove to make a valid parathesis ki video dalna

  • @Platcode797
    @Platcode797 Рік тому +1

    ham

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

      Na Nhi aaega. Binary Search on Answer concept ka logic hi yhi hai. Search space end hone pr hi Answer aata hai.

  • @Raushankumar-dz5cb
    @Raushankumar-dz5cb Рік тому +1

    What is the time and space complexity for this code ?

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

      Log2000*(LogN*M) where N and M are rows and columns and base of the log will be 2. You can watch my Time Complexity lecture for detailed explanation

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

      If we choose max and min value of matrix for search space then whats the complexity.

  • @yogeshsahni5808
    @yogeshsahni5808 7 місяців тому +1

    I understool the algorithm, but still confused how this algorithm ensures that the value returned i.e. (start or min) exists in the matrix, as it started as the min limit 1 & max limit 2000 those were never in the matrix (not in example at least) and calculation for mid = s +(e-s)/2 is only giving the mid values of those limits and we are couting and updating the min ,max and at the last when min goes bigger than max , return min.

    • @shashwat_tiwari_st
      @shashwat_tiwari_st  7 місяців тому +1

      Hi,.
      This is Binary Search on Answer concept.
      Here we don't deal with actual value.
      We take a value in range( It may or may not exist in the array /matrix)
      Now, if this arbitrary value is an answer, it will definitely exist and if it does not exist then it cannot be our answer.

    • @sayantanadhikari9736
      @sayantanadhikari9736 5 місяців тому

      @@shashwat_tiwari_st so can we take the end as Integer.MAX_VALUE as well ?

    • @aashishkohli1198
      @aashishkohli1198 17 днів тому

      I think the solution on GFG and most of YT is wrong (and i think the reason is that this question hasn't been asked a lot repeatedly). However once we have the value calculated as shown in the video we can quickly form the answer in lets say O (R*Log(C))

  • @wullar2kanyakumari412
    @wullar2kanyakumari412 Рік тому +1

    Time complexity of the above code should be mentioned in the video

  • @Priyew
    @Priyew Рік тому +1

    Day 14 challenge completed #junecodechallengewithshashwat