Given an array arr[] of N integers and an index range [a, b]. The task is to sort the array in this given index range… Read More
Tag Archives: Arrays
Given an array of objects and the task is to return the unique object by the attribute. Examples: Input: [ { name: 'Geeks', id: 10… Read More
Given an array containing N elements. Find if it is possible to sort it in non-decreasing order using atmost one swap. Examples: Input : arr[]… Read More
Given a 2-D Matrix and an integer ‘K’, the task is to predict the matrix after ‘K’ iterations given as follows: An element 1 in… Read More
Static Queue: A queue is an ordered list of elements. It always works in first in first out(FIFO) fashion. All the elements get inserted at… Read More
Given a NxM matrix with N rows and M columns of positive integers. The task is to find the pair with the maximum difference in… Read More
Given a NxM matrix with N rows and M columns of positive integers. The task is to find the sum of pair with maximum sum… Read More
Given a number N. The task is to create an alphabetical string in lower case from that number and tell whether the string is palindrome… Read More
A square matrix is a matrix which includes elements in the form of Rows and Columns. Below is an example of a 5×5 matrix. A… Read More
Given two arrays arr1[] and arr2[]. The task is to find the count of such elements in the first array whose at-least one factor is… Read More
Prerequisite: Doubly Linked list, Circular Linked List, Circular Doubly Linked ListGiven an array of N elements. The task is to write a program to convert… Read More
Given an array of integers arr[] represents digits of a number. The task is to write a program to generate the largest number possible using… Read More