ProDeveloperTutorialonAugust 24, 2026 Matrix: Given a matrix, check if the matrix is sparse or not Problem Statement: You are given a 2D matrix with n * m size, you need to check if the matrix is sparse or not. A matrix is called as sparse…
ProDeveloperTutorialonAugust 24, 2026 Matrix: Given a matrix, find the transpose of the matrix Problem Statement: You are given a matrix. You need to find the transpose of the matrix. A transpose of a matrix can be found by converting…
ProDeveloperTutorialonAugust 24, 2026 Matrix: Given a matrix, check if it is a magic square or not Problem Statement: You are given a matrix, you need to check if the matrix is a Magic Square or not. A matrix is a magic square of n * n,…
ProDeveloperTutorialonAugust 24, 2026 Matrix: Given a matrix, you need to find the sum of diagonals of a matrix. Problem Statement: You are given a 2D square matrix, you need to find the sum of the diagonals. Example: Input: 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6…
ProDeveloperTutorialonAugust 24, 2026 Matrix: Given a matrix, rotate matrix 180 degree Problem Statement: Given a matrix, rotate matrix 180 degree Example: Input: matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] Output: [[9, 8, 7], [6,…
ProDeveloperTutorialonAugust 24, 2026 Matrix: Given a matrix, check if it is skew symmetric or not Problem Statement: A matrix is called as skew symmetric matrix , whose transpose is negative of the original matrix. i.e if the entry in ith…
ProDeveloperTutorialonAugust 24, 2026 Matrix: Given a matrix, print the boundary elements Problem Statement: You are given a matrix mat[m][n]. You need to print the boundary elements in clockwise, starting from top left element.…
ProDeveloperTutorialonAugust 24, 2026 Matrix: Check if the matrix is Bisymmetric matrix or not Problem Statement: You are given a matrix, you need to check if the matrix is Bi-symmetric matrix or not. A square matrix is considered as…
ProDeveloperTutorialonAugust 24, 2026 Queue: Maximum of all subarrays of size K Problem Statement: You are given an array, and integer k. You need to find the max value for each contiguous sub array of size k. Output…
ProDeveloperTutorialonAugust 24, 2026 Queue: Reverse a stack using queue Problem Statement: You are given a stack, reverse the stack using queue Example: Input: s = [1, 2, 3, 4] Output q = [4, 3, 2, 1] Solution…