task scheduler | task scheduler leetcode | leetcode 621 | greedy

preview_player
Показать описание


#Greedy #IdleSpots #TaskScheduler #Coding #Programming #Interview #Practice #Leetcode #Medium #621 #Algorithm #Java #Preparation
Рекомендации по теме
Комментарии
Автор

How to did we get this formulae?
idealSpots=No.of Chunks - cooling time?

KeerthiReddyKolan
Автор

hey
How did you come on the formula for chunk ? whats the logic

mayankjohari
Автор

Awesome Naresh! The way you explained the solution with examples and easy to follow dry runs is really helpful and certainly builds concepts. Hence I subscribed your channel :) . Looking forward to watch more of your Algorithm/DS videos.

sachin_getsgoin
Автор

Hi sir, Can you help me to sort process scheduling problem out?

vimalkumar-iwdu
Автор

i have also figured out this solution but what for " AAAABBBBCCCCDDDDEEEEFFFF " This type of filling all chunks...still duplicate are left

varunvishwakarma
Автор

I always see font of text editors in videos are different than mine. how to get it @nareshgupa sir

iamankitmishra
Автор

Can you explain how you arrived at 8 ? A -> b -> IDLE -> A -> B -> IDLE -> A -> B..so shouldnt it be (1 + 1 + 2 + 1 + 1 + 2 + 1 +1 = 10) ?
questions 2: If we do A - B - A -B -A -B then we wont need idle tasks and it would be 6 right ? Am i missing something ?

anishdubey
Автор

can you explain why we subtract min(chunk, f[i]) not only f[i]

mohammadatif
Автор

how to sort the array in reverse in leetcode . Collections.reverseOrder() is not working for nice explanation

samakshtandon
Автор

Thanks for the video, such a clear and easy explanation.

naidusunny
Автор

Why are we taking minimum here. Didn't get it

lingasodanapalli
Автор

Can you explain why you subtracted 1 from chunks??

electric
Автор

will this work on a case like ['A', 'A', 'A', 'B', 'B', 'B', 'C', 'C', 'C', 'D', 'D', 'D'] for k =2

amitanshupattanayak
Автор

I tried to solve this by using Map and maxheap but got stuck at point. i think that approach is a kind of brute force. This solution is little tricky

aryansaxenafanclub
Автор

Hello Naresh, I'm currently a 2nd year comp sci (undergrad) student. I would like to know how you got so good at programming.

AbhishekYadav-bwmz