Maximal Score After Applying K Operations|Leetcode 2530 | leetcode daily problem today| K-Operations

  Рет қаралды 250

Code Thoughts

Code Thoughts

Күн бұрын

Пікірлер: 3
@dhaneshthakur6481
@dhaneshthakur6481 Ай бұрын
Clear sir good 👍 and thanks sir
@NatnaelYohanes
@NatnaelYohanes Ай бұрын
You take more time on explanation rather than code that is nice but could you add time and space complexity in it evenif it is easy to understand. And thanks
@TheCodeThoughts
@TheCodeThoughts Ай бұрын
Thanks for your valuable suggestions, yes I do agree I will take care of these things here onwards, I know for candidates having beginner phase needs explanation thoroughly. By the way the space complexity is O(n) , because we are creating a Max heap of size n, same as nums size. And Time Complexity is O(k log n). Because we are doing k-times pop operation from Max heap so its O( k Log n).
If people acted like cats 🙀😹 LeoNata family #shorts
00:22
LeoNata Family
Рет қаралды 41 МЛН
Turn Off the Vacum And Sit Back and Laugh 🤣
00:34
SKITSFUL
Рет қаралды 11 МЛН
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 34 МЛН
OpenAI's Altman: Here's what to expect from AI in 2025
3:00
CNBC Television
Рет қаралды 92 М.
how much DSA to learn?
0:42
Sahil & Sarra
Рет қаралды 163 М.
If people acted like cats 🙀😹 LeoNata family #shorts
00:22
LeoNata Family
Рет қаралды 41 МЛН