# Arrays

### Print array after it is right rotated K times | Set 2

Given an array arr[] of size N and a value K, the task is to print the array rotated by…

### Count of subsequences with sum two less than the array sum

Given an array vec[] of size N of non-negative integers. The task is to count the number of subsequences with…

### Maximize sum of elements at corresponding indices of given array and its reversed array

Given an array arr[] containing N integers, the task is to find the maximum sum obtained by adding the elements…

### Maximum sum of at most two non-overlapping intervals in a list of Intervals | Interval Scheduling Problem

import java.util.*;  class GFG {          public static void main(String[] args)    {        int[][] interval            = { { 1, 3, 2 },                { 4, 5, 2 },                { 1,…

### Count of possible unique arrays after swapping elements at same index of given Arrays

#include using namespace std;int possibleCombinations(int arr1[], int arr2[], int N){        unordered_map mp;                    for (int i = 0; i < N; i++) {        mp[arr1[i]]…

Arrays

### Minimize cost to reach the end of given Binary Array using jump of K length after performing given operations

Given a binary array arr[] of N integers and an integer P, the task is to find the minimum cost…

### Find the indices which will hold the Array sum after given operations

Given an array arr[], the task is to print the indices that have the highest probability of holding the entire…

Arrays

### Minimum count of starting elements chosen to visit whole Array depending on ratio of values to positions

Given an array arr[], the task is to calculate the minimum number of starting elements to choose from such that…