## Maximize the difference between two subsets of a set with negatives

Given an of integers of size N. The task is to separate these integers into two groups g1 and g2 such that (sum of elements… Read More »

- Find the smallest positive number missing from an unsorted array | Set 2
- Merge k sorted arrays | Set 2 (Different Sized Arrays)
- Maximum sum in circular array such that no two elements are adjacent
- Minimum number of items to be delivered
- Program to find the Hidden Number
- Calculate the total fine to be collected
- Amazon Interview Experience
- Next Smaller Element
- Next greater element in same order as input
- Print all pairs with given sum
- Coin game of two corners (Greedy Approach)
- Longest subarray having average greater than or equal to x
- Elements that occurred only once in the array
- Sum of all odd frequency elements in an array
- Length of the longest Subarray with only Even Elements
- Maximum Product Subarray | Set 3
- Maximum profit after buying and selling the stocks
- Design a Hit Counter
- Sort elements by frequency | Set 5 (using Java Map)
- For each element in 1st array count elements less than or equal to it in 2nd array | Set 2
- Remove duplicates from unsorted array
- Find triplets in an array whose AND is maximum
- Number of elements that can be seen from right side
- Check if an array is sorted and rotated clockwise
- Largest subarray having sum greater than k
- Minimum number of swaps required to sort an array | Set 2
- Check whether an Array is Subarray of another Array
- Number of subsets with sum divisible by m
- Sandvine Interview Experience for FTE 2018
- Sort first k values in ascending order and remaining n-k values in descending order

Given an of integers of size N. The task is to separate these integers into two groups g1 and g2 such that (sum of elements… Read More »

Given an array[] of N positive integers and M queries. Each query consists of two integers L and R represented by a range. For each… Read More »

Given an array of non-negative integers arr[]. The task is to find the largest number in the array which is palindrome. If no such number… Read More »

Given an array arr[] and an integer x, the task is to check whether the sum of all the perfect squares from the array is… 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 strings dates[], the task is to sort these dates in ascending order. Note: Each date is of the form dd mmm… Read More »

Given two arrays of size N and two integers X and Y indicating the maximum number of elements one can pick from array A and… Read More »

Given a string str containing numbers and alphabets, the task is to find all the numbers in str using regular expression. Examples: Input: abcd11gdf15hnnn678hh4 Output:… Read More »

Given an array arr of N (even) integer elements. The task is to check if it is possible to reorder the elements of the array… Read More »

Given an array of integers arr[], the task is to count the number of valid pairs of elements from arr. A pair (arr[x], arr[y]) is… Read More »

Given an array arr[] of N integers. The task is to find the sum of the elements which have frequencies greater than or equal to… Read More »

Given an array of integers. The task is to find the maximum sum of all the elements of the array after performing the given two… Read More »

Given a file containing data of student name and marks scored by him/her in 3 subjects. The task is to find the list of students… Read More »

Given an array of N integers. Each element in the array occurs same number of times except one element. The task is to find this… Read More »

Given an array of N integers. The task is to find the smallest index of an element such that when multiplied by -1 the sum… Read More »