ProDeveloperTutorialonAugust 26, 2026 Matrix: Given a 2D matrix, find the peak element. Problem Statement: You are given a 2D matrix of size n * m, you need to find the peak element. An element is a peak element if it is greater…
ProDeveloperTutorialonAugust 26, 2026 Matrix: Given a matrix, count zero in row wise and column wise matrix Problem Statement: You are given a 2D matrix of size n * n where all the elements are 0 or 1. They are sorted in ascending order. You need to…
ProDeveloperTutorialonAugust 26, 2026 Matrix: Given a matrix, you need to count the number of rows and columns whose sum equal to diagonal sum Problem Statement: Given a 2D matrix of size n*n. You need to count the number of rows and columns whose sum equal to diagonal sum Example:…
ProDeveloperTutorialonAugust 26, 2026 Matrix: Given a binary matrix, find the rows with max 1s Problem Statement: Given a matrix, you need to find the row with maximum 1s. Each rows are sorted Example: Input: 0 0 0 1 1 1 1 1 0 0 0 0 0 0…
ProDeveloperTutorialonAugust 26, 2026 Matrix: Given a matrix, find the saddle point Problem Statement: You are given a matrix. You need to find saddle point. A saddle point is an element in the matrix, is an element such that,…
ProDeveloperTutorialonAugust 26, 2026 Matrix: Given a matrix, count the majority element Problem Statement: You are given a 2D (m * n) matrix. You need to find the majority element. A majority element is a number whose count is…
ProDeveloperTutorialonAugust 26, 2026 Matrix: Given a matrix, count the number of sorted rows Problem Statement: You are given a 2D matrix of size [n * m]. You need to count all the rows in a matrix that are sorted in either increasing…
ProDeveloperTutorialonAugust 26, 2026 Matrix: Find common elements in all rows of a given matrix Problem Statement: You are given a 2D matrix of size n * m. You need to find all the common elements present in all rows. Example: Input: 1 2…
ProDeveloperTutorialonAugust 26, 2026 Matrix: Given a matrix, check if it is orthogonal or not Problem Statement: You are given a matrix, you need to check if it is orthogonal or not. A matrix is considered as orthogonal, when we…
ProDeveloperTutorialonAugust 24, 2026 Matrix: Given a matrix, check if the sum of ith row and ith column are same Problem Statement: You are given a 2D matrix of size m * n, you need to check if the sum of ith row and ith column are same. If the dimension…