Optimization Problems
The optimization problem is the problem of finding the best solution from all feasible solutions. To solve these problems constraints must be known. This involves finding of maximum and minimum values of some function. It is an important tool in making decisions and analyzing physical systems.
Minimize the sum of minimum and second minimum elements from all possible triplets
By Sandeep kamila
● Published At Dec 2021
This article covers the approach to minimize the sum of minimum and second minimum elements from all possible triplets with its C++ code.... Keep reading ..
Minimize the Sum of Minimum and Second Minimum Elements from All Possible Triplets
By Saksham Gupta
● Published At Feb 2022
In this blog, we will discuss a classical problem of the greedy Algorithm and a famous interview question, i.e., minimize the sum of minimum and second minimum elements from all possible triplets. ... Keep reading ..
Minimize Cost for Reducing Array by Replacing Two Elements with Sum at most K times for any Index
By Aman Chourasiya
● Published At Dec 2021
In this blog, we will discuss a problem based on n-ary trees and prefix sums. We will transform and visualise a problem in a graphical way to draw certain conclusions.... Keep reading ..
Minimize Deletions from Either End to Remove Minimum and Maximum from Array
By Sujal Modanwal
● Published At Jan 2022
The task is to find the minimum number of deletions from start or end to remove minimum and maximum elements of the array. ... Keep reading ..
Maximize cost obtained by removal of substrings “pr” or “rp” from a given String
By Aditya Narayan Joardar
● Published At Nov 2021
This article discusses maximizing the by removing the substring "pr" or "rp" from a given string.... Keep reading ..
Minimize insertions or deletions to make the frequency of each array element equal to its value
By Aman Chourasiya
● Published At Dec 2021
This blog discusses a coding challenge based on greedy algorithms. Greedy algorithms are one of the most asked topics in technical interviews and programming contests.... Keep reading ..
Maximize score by rearranging Array such that absolute difference of first and last element is minimum
By Aman kumar Chourasiya
● Published At Jan 2022
In this blog, we will discuss a coding challenge that involves the use of sorting and greedy algorithms. Greedy algorithms are well known for their simplicity and ease to understand.... Keep reading ..
Minimize Swaps to Make Remainder Equal When an Element and its Index is Divided by K
By Sujal Modanwal
● Published At Jan 2022
The task is to find minimum swaps required to make every element’s remainder with k equal to its index remainder with k.... Keep reading ..
Maximize the frequency of an element by at most one increment or decrement of all array elements
By Sandeep kamila
● Published At Dec 2021
This article covers the approach to maximize the frequency of an element by at most one increment or decrement of all array elements with complete explanation and its C++ code.... Keep reading ..
Minimize Flips to Make the Binary String as all 1s by Flipping Characters in a Substring of size K Repeatedly
By Aman kumar Chourasiya
● Published At Jan 2022
In this blog, we will take up a coding problem based on strings. We will learn to use a greedy approach to solve the challenge.... Keep reading ..
Maximum Ice Cream Bars
By Sandeep kamila
● Published At Mar 2022
This blog will cover the approach of the Maximum Ice Cream Bars problem with its C++ code.... Keep reading ..