Тёмный

1052. Grumpy Bookstore Owner | Leetcode Daily Challenge (POTD) 21 June 2024 | Sliding Window | O(n) 

AlgorithmHQ
Подписаться 4,5 тыс.
Просмотров 909
50% 1

Опубликовано:

 

27 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 13   
@MeetPatel-yw2ti
@MeetPatel-yw2ti 4 месяца назад
best explanation,...Jay Shree Krishan🙏
@algorithmsbyaditi
@algorithmsbyaditi 4 месяца назад
Glad you liked it !
@mr.nishantawasthi4402
@mr.nishantawasthi4402 4 месяца назад
Nice
@algorithmsbyaditi
@algorithmsbyaditi 4 месяца назад
Thanks
@perseverance2814
@perseverance2814 4 месяца назад
One of the Best explanation loved the way you have approached and solved !!! Thanks
@algorithmsbyaditi
@algorithmsbyaditi 4 месяца назад
Glad it helped
@pushanmukhopadhyay3379
@pushanmukhopadhyay3379 4 месяца назад
easy explanation
@algorithmsbyaditi
@algorithmsbyaditi 4 месяца назад
Glad you think so!
@vinayakporwal9885
@vinayakporwal9885 4 месяца назад
i got it by this way: my intuition was get the sum of all grumpy == 0 condition after that i ran a window on all positions and add the sum of grumpy==1 to sum and store max for all windows
@algorithmsbyaditi
@algorithmsbyaditi 4 месяца назад
Awesome ! 💯
@navneetsingh7209
@navneetsingh7209 4 месяца назад
Same topic around your topic I do all questions with own but I do not show my skill on RU-vid like you
@Arpit-mq2jj
@Arpit-mq2jj 4 месяца назад
Explain complexity and write fast,but explanation is good
@algorithmsbyaditi
@algorithmsbyaditi 4 месяца назад
Will improve. Thank you !
Далее
Grumpy Bookstore Owner - Leetcode 1052 - Python
7:58