5 QUESTIONS
Q1 1 / 5 medium
Greedy Basics
You're given an array of n integers. In one operation you can increase or decrease any element by 1. Find the minimum operations to make all elements equal.
What is the key technique required?
You're given an array of n integers. In one operation you can increase or decrease any element by 1. Find the minimum operations to make all elements equal.
What is the key technique required?