## Job Selection Problem – Loss Minimization Strategy | Set 2

We have discussed one loss minimization strategy before: Job Sequencing Problem – Loss Minimization. In this article, we will look at another strategy that applies… Read More »

Quick Links for Sorting

Sorting Terminology |

Stability in sorting algorithms |

Time Complexities of all Sorting Algorithms |

External Sorting |

We have discussed one loss minimization strategy before: Job Sequencing Problem – Loss Minimization. In this article, we will look at another strategy that applies… Read More »

You are given an array of n-elements you have to find k smallest elements from the array but they must be in the same order… Read More »

You are given an array of n-element. You have to make subsets from the array such that no subset contain duplicate elements. Find out minimum… Read More »

Given an array of strings, print them in alphabetical (dictionary) order. If there are duplicates in input array, we need to print all the occurrences.… Read More »

Given a tuple, sort the list of tuples in increasing order by any key in tuple. Examples: Input : tuple = [(2, 5), (1, 2),… Read More »

Given n integer coordinates. The task is to find sum of manhattan distance between all pairs of coordinates. Manhattan Distance between two points (x1, y1)… Read More »

Given an array, the task is to find maximum triplet sum in the array. Examples: Input : arr[] = {1, 2, 3, 0, -1, 8,… Read More »

Given an array A of n elements, sort the array according to the following relations : , if i is even. , if i is… Read More »

Given an array of n elements. Find maximum sum of pairwise multiplications. Sum can be larger so take mod with 10^9+7. If there are odd… Read More »

Given a strings, we need to sort the words in lexicographical order (dictionary order). Examples : Input : “hello python program how are you” Output… Read More »

Given two arrays A[] and B[] of same size n. We need to first permute any of arrays such that the sum of product of… Read More »

We are given an array of m-elements, we need to find n smallest elements from the array but they must be in the same order… Read More »

Given a linked list containing n nodes. The problem is to rearrange the nodes of the list in such a way that the data in… Read More »

In this program, we need to accept a list and sort it based on the length of the elements present within. Examples: Input : list… Read More »

Given an array of n-elements. Given array is a permutation of some Arithmetic Progression. Find the minimum number of De-arrangements present in that array so… Read More »