# Category Archives: C++

Given a n Ã— m binary matrix, count the number of sets where a set can be formed one or more same values in aâ€¦ Read More
Given a 4 x 4 matrix, we have to interchange the elements of first and last row and show the resulting matrix.Examples : Input: 3â€¦ Read More
Given a n x n matrix. The problem is to sort the given matrix in strict order. Here strict order means that matrix is sortedâ€¦ Read More
An array is given, find length of the subarray having maximum sum. Examples :Â  Input : a[] = {1, -2, 1, 1, -2, 1} Outputâ€¦ Read More
In linear algebra, the characteristic polynomial of a square matrix is a polynomial that is invariant under matrix similarity and has the eigenvalues as roots.â€¦ Read More
Given a linked list of n nodes which is first sorted, then rotated by k elements. Find the value of k. Recommended: Please try yourâ€¦ Read More
Given a matrix, the task is to find the maximum element of each row. Examples:  Input : [1, 2, 3] [1, 4, 9] [76, 34,â€¦ Read More
Given a numeric string S, the task is to find the maximum length of a subsequence having its left rotation equal to its right rotation.â€¦ Read More
Given an array of integers, you have to find three numbers such that the sum of two elements equals the third element.Examples: Input: {5, 32,â€¦ Read More
Two pointers is really an easy and effective technique which is typically used for searching pairs in a sorted array.Given a sorted array A (sortedâ€¦ Read More
An array consisting of N integers is given. There are several Right Circular Rotations of range[L..R] that we perform. After performing these rotations, we needâ€¦ Read More
In mathematics, a square matrix is said to be diagonally dominant if, for every row of the matrix, the magnitude of the diagonal entry inâ€¦ Read More
Given an array arr[] of N distinct elements, the task is to check if it is possible to make the array increasing or decreasing byâ€¦ Read More
Given an array of size N, the task is to determine whether its possible to sort the array or not by just one shuffle. Inâ€¦ Read More
Given an array of sorted integers. We need to find the closest value to the given number. Array may contain duplicate values and negative numbers. â€¦ Read More