ขนาดวิดีโอ: 1280 X 720853 X 480640 X 360
แสดงแผงควบคุมโปรแกรมเล่น
เล่นอัตโนมัติ
เล่นใหม่
Your teaching was just amazing .Please continue these Problem Solving sessions
Very clearly explained. Keep it up brother
Thank you so much ❤
saved my day nice explanation 👍
Glad it helped!
Great explanation brother
good annaa
CAN YOU PLEASE CREATE A PLAYLIST FOR INTERVAL PROBLEMS - I DON'T FIND ANY U TUBER DOES THAT
once I have a bunch of problems on intervals, I will put them in a playlist for sure
@@nikoo28 Thanks a lot brother, if you want any questions will share here?
can anyone explain why this solution is not O(log m) + O(log n)?
This is the law of logarithms.Log(A) + Log(B) = log(A*B)
Perfect answer
Say you have 8 in place of 14 and you are searching for 9 … can you explain the algorithm?
getting time limit exceeded
Code I have writtenclass 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
look at the code on github, it is available in video description
var searchMatrix = function(matrix, target) { if (!matrix.length || !matrix[0].length) return false; let row = 0; let col = matrix[0].length - 1; while (col >= 0 && row target) col--; else if (matrix[row][col] < target) row++; } return false;};
cool look. great video. lets get started😆
hahaha... 😄
Your teaching was just amazing .Please continue these Problem Solving sessions
Very clearly explained. Keep it up brother
Thank you so much ❤
saved my day nice explanation 👍
Glad it helped!
Great explanation brother
good annaa
CAN YOU PLEASE CREATE A PLAYLIST FOR INTERVAL PROBLEMS - I DON'T FIND ANY U TUBER DOES THAT
once I have a bunch of problems on intervals, I will put them in a playlist for sure
@@nikoo28 Thanks a lot brother, if you want any questions will share here?
can anyone explain why this solution is not O(log m) + O(log n)?
This is the law of logarithms.
Log(A) + Log(B) = log(A*B)
Perfect answer
Say you have 8 in place of 14 and you are searching for 9 … can you explain the algorithm?
getting time limit exceeded
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
look at the code on github, it is available in video description
var searchMatrix = function(matrix, target) {
if (!matrix.length || !matrix[0].length) return false;
let row = 0;
let col = matrix[0].length - 1;
while (col >= 0 && row target) col--;
else if (matrix[row][col] < target) row++;
}
return false;
};
cool look. great video. lets get started😆
hahaha... 😄
Your teaching was just amazing .Please continue these Problem Solving sessions