## Longest sub-sequence of array containing Lucas numbers

Given an array arr[] of N elements, the task is to find the length of the longest sub-sequence in arr[] such that all the elements… Read More »

- Remove duplicates from unsorted array
- Why array index starts from zero ?
- Maximum sum in circular array such that no two elements are adjacent
- Next Smaller Element
- Coin game of two corners (Greedy Approach)
- Sort elements by frequency | Set 5 (using Java Map)
- Design a Hit Counter
- Minimum number of swaps required to sort an array | Set 2
- Minimum number of items to be delivered
- Maximum profit after buying and selling the stocks
- MakeMyTrip Interview Experience 2019
- Next greater element in same order as input
- Elements that occurred only once in the array
- Program to find the Hidden Number
- Calculate the total fine to be collected
- Reach the numbers by making jumps of two given lengths
- Longest subarray having average greater than or equal to x
- Longest subarray having maximum sum
- Sum of all odd frequency elements in an array
- Count distinct elements in an array
- Rearrange Odd and Even values in Alternate Fashion in Ascending Order
- Check if an array is sorted and rotated clockwise
- Largest palindromic number in an array
- Make all numbers of an array equal
- Program to check if an array is palindrome or not using Recursion
- Check whether an Array is Subarray of another Array
- Find triplets in an array whose AND is maximum
- Program for K Most Recently Used (MRU) Apps
- For each element in 1st array count elements less than or equal to it in 2nd array | Set 2
- Length of the longest Subarray with only Even Elements

Given an array arr[] of N elements, the task is to find the length of the longest sub-sequence in arr[] such that all the elements… Read More »

Given an array arr[], the task is to count the number of elements from the array which divide the sum of all other elements. Examples:… Read More »

Given N boxes with their capacities which denotes the total number of boxes that it can hold above it. You can stack up the boxes… Read More »

Given an array A containing N elements (N is divisible by 3), the task is to split the numbers into groups of 3, let the… Read More »

Given an array containing N elements, each element is either 1 or 2. The task is to find out whether the array can be divided… Read More »

Given an array of n length. The task is to check if the given array can be split into an odd number of sub-segment starting… Read More »

Given an array Arr[] of N integers. The task is to find minimum number of elements needed to be removed from the array, so that… Read More »

Given an integer K and an array arr[], the task is to split the array arr[] into K consecutive subarrays to find the maximum possible… Read More »

Given an array arr[] of N integers and an integer M where N % M = 0. The task is to find the minimum number… Read More »

Given a spirally sorted matrix with N * N elements and an integer X, the task is to find the position of this given integer… Read More »

Given k sorted arrays of different length, merge them into a single array such that the merged array is also sorted. Examples: Input : {{3,… Read More »

Given three positive integers N, L and R. The task is to find the number of ways to form an array of size N where… Read More »

Given an array arr[] containing a random permutation of first N natural numbers, the task is to find the longest sub-sequence having the property that… Read More »

There arises several situations while solving a problem where we need to iterate over all possible combinations of an array. In this article, we will… Read More »

Given a binary array arr[] (containing only 0s and 1s) and an integer K. The task is to find the minimum number of moves to… Read More »