# Tag Archives: array-traversal-question

Given three arrays A[], B[] and C[] of size N each and two integers X and Y, the task is to, find the minimum cost… Read More
Given an array arr[] containing N integers, the task is to check whether the array is monotonic or not (monotonic means either the array is… Read More
Given an array arr[] of N integers, the task is to find all indices in the array, such that for each index i the arithmetic… Read More
Given a matrix mat[][] and an integer K, the task is to find the length of the shortest path in a matrix from top-left to… Read More
Given an array arr[] and an integer K, the task is to find the absolute difference between the ceil of the total sum of the… Read More
Given a matrix A[][] of size N*M and a 2D array Q[][] consisting of queries of the form {X, K}, the task for each query… Read More
Given a matrix of size M x N consisting of integers, the task is to print the matrix elements using Breadth-First Search traversal. Examples: Input:… Read More
Given an array arr[] of size N, the task is to find the minimum increments by 1 required to be performed on the array elements… Read More
Given a 2D square matrix arr[][] of dimensions N x N, the task is to find the maximum path sum by moving diagonally from any… Read More
Given an array arr[] of size N, where arr[i] is the time required to visit ith city, the task is to find the minimum total… Read More
Given a matrix arr[][] of size N * M, the task is to print the matrix after removing all rows and columns from the matrix… Read More
Given an array arr[] of size N, the task is to check if the array is spirally sorted or not. If found to be true,… Read More
Given an array arr[] consisting of N integers and an integer K, the task is to check if the sum of the array can be… Read More
Given an array A[] consisting of N integers, where each value represents the marks of the ith student, the task is to find the minimum… Read More
Given an array arr[] consisting of N integers and three integers X, Y, and K, the task is to find the farthest index that can… Read More