Search a 2D matrix (LeetCode 74) | Full solution with visual examples and proof

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ก.ย. 2024

ความคิดเห็น • 17

  • @KeerthiKothapalli-g1k
    @KeerthiKothapalli-g1k ปีที่แล้ว +6

    Your teaching was just amazing .Please continue these Problem Solving sessions

  • @conquerorsanthosh
    @conquerorsanthosh 11 วันที่ผ่านมา

    Very clearly explained. Keep it up brother

  • @pragyanborthakur1333
    @pragyanborthakur1333 หลายเดือนก่อน

    Great explanation brother

  • @mohammedharoon1167
    @mohammedharoon1167 7 หลายเดือนก่อน

    saved my day nice explanation 👍

    • @nikoo28
      @nikoo28  6 หลายเดือนก่อน

      Glad it helped!

  • @AlexTopGT
    @AlexTopGT 9 หลายเดือนก่อน +1

    can anyone explain why this solution is not O(log m) + O(log n)?

    • @sharaabsingh
      @sharaabsingh 9 หลายเดือนก่อน +1

      This is the law of logarithms.
      Log(A) + Log(B) = log(A*B)

    • @nikoo28
      @nikoo28  8 หลายเดือนก่อน +1

      Perfect answer

  • @ChristForAll-143
    @ChristForAll-143 ปีที่แล้ว

    CAN YOU PLEASE CREATE A PLAYLIST FOR INTERVAL PROBLEMS - I DON'T FIND ANY U TUBER DOES THAT

    • @nikoo28
      @nikoo28  ปีที่แล้ว

      once I have a bunch of problems on intervals, I will put them in a playlist for sure

    • @ChristForAll-143
      @ChristForAll-143 ปีที่แล้ว

      @@nikoo28 Thanks a lot brother, if you want any questions will share here?

  • @khushaldodeja8267
    @khushaldodeja8267 6 หลายเดือนก่อน

    getting time limit exceeded

    • @khushaldodeja8267
      @khushaldodeja8267 6 หลายเดือนก่อน

      Code I have written
      class Solution {
      public boolean searchMatrix(int[][] matrix, int target) {
      int i = 0, j = matrix.length-1;
      int mid;
      int potentialRow=-1;
      while(imatrix[mid+1][0]){
      i = mid+1;
      }
      else if(target

    • @nikoo28
      @nikoo28  6 หลายเดือนก่อน +1

      look at the code on github, it is available in video description

  • @kolawoleabdulrahman
    @kolawoleabdulrahman 11 หลายเดือนก่อน

    cool look. great video. lets get started😆

    • @nikoo28
      @nikoo28  11 หลายเดือนก่อน

      hahaha... 😄

  • @codinghero2001
    @codinghero2001 ปีที่แล้ว +2

    Your teaching was just amazing .Please continue these Problem Solving sessions