Pick Toys | An Interesting Sliding Window Problem

Опубликовано: 03 Январь 2021
на канале: Aditya Verma
90,157
2.7k

Use Code ADITYA.VERMA.NITB for unlocking Free Classes and 10% off in Subscription

Get ready to conquer the fundamentals and interviews with Unacademy's CONQUEST 2021. Leave Procrastination behind in 2020 and enroll!

Check out "CONQUEST 2021: From programming fundamentals to Career Readiness (C++)" (Preview available)
: https://unacademy.com/batch/conquest-...

Check out "CONQUEST 2021: From programming fundamentals to Career Readiness (PYTHON)" (Preview available)
: https://unacademy.com/batch/conquest-...

Check out "CONQUEST 2021: From programming fundamentals to Career Readiness (JAVA)" (Preview available)
:https://unacademy.com/batch/conquest-...


Be placement ready with our Tech Placement Bootcamp: https://unacademy.com/a/tech-placemen...

---------------------------------------------------------------------------------------------------------------------------------------------------------------


Patreon Link:   / adityaverma  
Video Pdf Notes And Code:   / 45753532  

---------------------------------------------------------------------------------------------------------------------------------------------------------------

Playlist Link:    • Sliding Window Algorithm | Face to Fa...  


Problem Description: No Where, it was an interview problem

John is at a toy store help him pick maximum number of toys. He can only select in a continuous manner and he can select only two types of toys.


Example:
Input:
1
abaccab




⏰ Time Stamps ⏰
0:00 Intro and Flow
1:04 Problem Statement
5:12 Check out Unacademy's Free Courses
7:47 Input and Output
10:33 Explanation
18:16 Relation to an already solved Problem
23:16 Support the Channel: Like and Subscribe .
------------------------------------------------------------------------------------------
Here are some of the gears that I use almost everyday:

🖊️ : My Pen (Used in videos too): https://amzn.to/38fKSM1
👨🏻‍💻 : My Apple Macbook pro: https://amzn.to/3w8iZh6
💻 : My gaming laptop: https://amzn.to/3yjcn23
📱 : My Ipad: https://amzn.to/39yEMGS
✏️ : My Apple Pencil: https://amzn.to/3kMnKYf
🎧 : My Headphones: https://amzn.to/3kMOzM7
💺 : My Chair: https://amzn.to/385weqR
🛋 : My Table: https://amzn.to/3kMohtd
⏰ : My Clock: https://amzn.to/3slFUV3
🙋🏻‍♀️ : My girlfriend: https://amzn.to/3M6zLDK ¯\_(ツ)_/¯

PS: While having good gears help you perform efficiently, don’t get under the impression that they will make you successful without any hard work.


Смотрите видео Pick Toys | An Interesting Sliding Window Problem онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Aditya Verma 03 Январь 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 90,157 раз и оно понравилось 2.7 тысяч людям.