Largest Component Size by Common Factor | Day 30 | [ August Challenge ] [ Leetcode #952] [ 2020 ]

Largest Component Size by Common Factor | Day 30 | [ August Challenge ] [ Leetcode #952] [ 2020 ]

Algorithms Made Easy

3 года назад

1,451 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@gmaximiliam15
@gmaximiliam15 - 01.09.2020 05:09

Thanks, awesome videos

Ответить
@sidhuparas
@sidhuparas - 31.08.2020 05:55

Very helpful. Great explanation!

Ответить
@AmitKumar_kumanoit
@AmitKumar_kumanoit - 30.08.2020 21:18

That's a nice explanation. Can you tell which application are you using to highlight array element/change color/draw some boxes?

Ответить
@nands4410
@nands4410 - 30.08.2020 20:18

Instead of adding to map u can have one more list that u update when you do union.

Then u can just return the max from that list

Ответить