Poor Pigs | LeetCode 458 HARD | Mathematics Theory explained + Any language Code | Learn Overflow

preview_player
Показать описание
Explained LeetCode HARD Question Poor Pigs

00:00 Intro
00:41 Understanding question
05:55 Understanding Example 1
06:45 Breaking down the question
09:16 The CATCH question asks us to understand
15:03 Generalizing our formula
17:14 Deriving the formula
20:05 Writing Code as per formula
21:51 second approach

If you find any difficulty or have any queries then do COMMENT below. PLEASE help our channel by SUBSCRIBING and LIKE our video if you found it helpful.

To support us you can donate

Videos you might like:

LIKE || SHARE || COMMENT

🌟 Connect with me Here on Social Media 🌟

✨ Hashtags ✨

This is a 100 % free tutorial so please SUBSCRIBE my to channel.
#learnoveflow #leetcode #coding #programminglife #programmingisfun #programmer #tech #software #codinglife
Рекомендации по теме
Комментарии
Автор

why are we multiplying t+1 n times ? like for example t+1 = 5 and n = 2 then how come 2 pigs are clearing out 25 buckets I mean two pigs can clear only 10 buckets ??

navendraagrawal
Автор

That was really helpful, Thanks a ton!

srushtiharyan
Автор

Time stamp:
00:00 Intro
00:41 Understanding question
05:55 Understanding Example 1
06:45 Breaking down the question
09:16 The CATCH question asks us to understand
15:03 Generalizing our formula
17:14 Deriving the formula
20:05 Writing Code as per formula
21:51 second approach

LearnOverflow
Автор

Great explanation :-) struggled this question for 1 hour :-| and here I got the answer.

shagundhakal
Автор

Could you please explain this simultaneous thing. I don't understand why we multipled.

snehabaser
Автор

How much time did you take to solve it. The t+1 is surely what I have missed. Good video

ranitbandyopadhyay
join shbcf.ru