## Check if each element of the given array is the product of exactly K prime numbers

Given an array of numbers and the value of , check if each number can be expressed as the product of exactly prime numbers. For… Read More »

- Check whether an Array is Subarray of another Array
- Count pairs in array whose sum is divisible by K
- Program to copy the contents of one array into another in the reverse order
- Check if array can be sorted with one swap
- Sort the array in a given index range
- Print Binary Tree levels in sorted order | Set 3 (Tree given as array)
- Problem of 8 Neighbours of an element in a 2-D Matrix
- Check if each element of the given array is the product of exactly K prime numbers
- Extract unique objects by attribute from array of objects.
- Longest sub-array whose product is 0
- Schedule elevator to reduce the total time taken
- Implementing next_permutation() in Java with Examples

Given an array of numbers and the value of , check if each number can be expressed as the product of exactly prime numbers. For… Read More »

Given an array or string, the task is to find the next lexicographically greater permutation of it in Java. Examples: Input: string = “gfg” Output:… Read More »

Given an array A[] and positive integer K, the task is to count total number of pairs in the array whose sum is divisible by… Read More »

Given an array arr[] of integer elements, the task is to find the length of the longest sub-array whose product is 0. Examples: Input: arr[]… Read More »

Given a Complete Binary Tree as an array, the task is to print all of its levels in sorted order. Examples: Input: arr[] = {7,… Read More »

Given an integer k and an array arr[] representing the destination floors for N people waiting currently at the ground floor and k is the… Read More »

Given an array, the task is to copy these array elements into another array in reverse array. Examples: Input: array: 1 2 3 4 5… Read More »

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 »

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 »

Given two arrays A[] and B[] consisting of and integers. The task is to check whether the array B[] is a subarray of the array… 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 an array of positive integers, find the smallest non-negative integer (i.e. greater than or equal to zero) that can be placed between any two… 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 »