Maximize array sum after K negations | Greedy | Love Babbar DSA Sheet | Amazon 🔥

preview_player
Показать описание
#Greedy #competitiveprogramming #coding #dsa
Hey, Guys in this video I have explained with code how we can solve the problem 'Maximize array sum after K negations'.

Join our Telegram Channel for more Information

🔰 Get 10% OFF on all GeeksforGeeks Courses
Coupon Code = CODELIBRARY

Follow us on Instagram:

Follow us on LinkedIn:

Hope you like it. Comment if you have any doubt

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

I will understand the logic and all from this channel only . Great work 👍👍👍

EceWithOp
Автор

Priority queue will decrease time complexity to O(n*logk) in the expanse of space

nayanbhuyan
Автор

Bhai your explanation is so great ❤️ For sure you will soon be becoming more famous, I hope you will cover all dsa questions

mukulupadhyay
Автор

Mera answer nahi aa parha h,
Wo int x=*min_element(n, n+1)
Ye wale line pe hi gadbad dikha rha h



And ek aur cheez can anyone plss explain me that what was the logic behind using Sum-=sum-2*x
I didn't understand

tejasjoshi
Автор

hi can you make a video on technique to approach a dsa problem from start

manu-singh
Автор

Can anybody explain me the concept of the line : int x = *min_element(a, a + n); ?

jatingarg
Автор

Bro time constraint to O(n) hai na to sorting kaise?

piyushsarraf
Автор

Wow 😳 g8 explanation bhaiya can u just tell me in which month u will complete all the 450 questions 😁

saurabhbhardwaj
Автор

Can someone provide java code for this please?

Prodcater
Автор

bhaiya heap ka bhi kordijiye jaldi please video please please

ramkrushnapatra