Skip to content

Category Archives: Arrays

Given an array A consisting of N positive integers, the task is to calculate the maximum XOR of the subarray of size K consisting of… Read More
Given an array, arr[] containing n integers, the task is to find an integer (say K) such that after replacing each and every index of… Read More
Arrays and Hash Tables are two of the most widely used data structures in computer science, both serving as efficient solutions for storing and accessing… Read More
Given an integer array of numbers num[], the task is to write a function to return the sum of the value of the array with… Read More
Given an array arr[] of N integers and an integer K, the task is to find the minimum possible value of summation of |A[i] –… Read More
Given an array X[] of length N. In each operation, the following task is performed: Decrement any value by 1. Replace any pair with their… Read More
Given an array arr[] of length N. Find a positive integer K such that the difference between any pair of array elements is not a… Read More
Given an array arr[] of size N, Return the number of permutations of array arr[] which satisfy the condition arr[1] & arr[2] & . .… Read More
Given an integer N, denoting the size of a circular array containing non-zero elements and an array arr[] of size M having the indices of… Read More
Given an array A[] of length N, the task is to find the maximum sum calculated by multiplying subsequence sum with its length and removing… Read More
Given an array arr[], the task is to find the maximum sum possible such that any subarray of the indices from [l, r] i.e all… Read More
Given N and K, the task is to form an array where each element represents the number of ways to reach each index i (1… Read More
Given an array arr[] of size n, the task is to find the maximum possible size x of a subset such that there are exactly… Read More
Given an array arr[] of size N ( N is even ), the task is to construct an array B[] such that the sum of… Read More
ArrayList: Array List is an implemented class of List interface which is present in package java.util. Array List is created on the basis of the… Read More

Start Your Coding Journey Now!