Leetcode 2449. Minimum Number of Operations to Make Arrays Similar

preview_player
Показать описание
Correction: time complexity is O(n log n) from sorting (not O(n))

Topics: Array, Greedy
Difficulty: Hard

Рекомендации по теме
Комментарии
Автор

Thanks for the detailed explanation. I was wondering if the complexity is O(NlogN) because of the sort?

hoomanhashemi