Given a matrix arr[][] which is sorted by the increasing number of elements and a number X, the task is to find the position where… Read More
Tag Archives: matrix-range-queries
Given two arrays R[] and C[] consisting of N integers such that a matrix of dimensions N x N can be formed whose element at… Read More
Given a matrix(mat[][]), which is sorted row and column-wise in increasing order. Two integers are given, L and R, our task is to count number… Read More
Given a Matrix of size N*N filled with 1‘s and 0‘s, the task is to find the maximum distance from a 0-cell to its nearest… Read More
Given an N * N matrix and q queries, each containing position of top-left and bottom-right corner of a rectangular sub-matrix, the task is to… Read More