Загрузка...

Day 689 - Observation and pattern finding masterclass to solve LC 3439 - Sliding Window

Video Summary:
We are given an integer eventTime, denoting the total time for the event.

Inside the event, multiple non-overlapping meetings take place. We know the starting and ending of each.

We can re-schedule at most K no. of meetings. By doing so, we need to find the longest consecutive free period of time.

The order of meetings should not change as well as the duration.
------------------------------------------------------------------
Hi everyone, this is the 5th video of our playlist: Sliding Window problems
My Sliding window Playlist : • https://www.youtube.com/playlist?list=PLq197d8rBM7lbrBZBv5GrpbhSa0oyIsJv

Problem Name : 3439. Reschedule Meetings for Maximum Free Time I
Solution Link : https://leetcode.com/problems/reschedule-meetings-for-maximum-free-time-i/submissions/1692335351/?envType=daily-question&envId=2025-07-09

My POTD Playlist : • https://www.youtube.com/playlist?list=PLq197d8rBM7lYrpqiB8ycGY6TTwutZeYw
My Recursion and DP Playlist : • https://www.youtube.com/playlist?list=PLq197d8rBM7mAYpf9msc_gzE4p9HiqxtR
My HashMap problems Playlist : • https://www.youtube.com/playlist?list=PLq197d8rBM7lyMCN2GYwcfNTW4qGBQDYr
My Graph Playlist : • https://www.youtube.com/playlist?list=PLq197d8rBM7kztq9rzXUOSMoWS7P4NJZb.
My Bit Manipulation Playlist : • https://www.youtube.com/playlist?list=PLq197d8rBM7kRX1SUZEnDK7Tbe1JeKzNI
My Math Problems Playlist : • https://www.youtube.com/playlist?list=PLq197d8rBM7lQ2rxabUjw0tA2S0HdSpRh

Also see the 2023 and 2024 repos by changing the year in the URL.
My GitHub Repo for interview preparation: https://github.com/Abdul-Rahimm/LeetCode_2025

✨ Timelines✨
00:00 - Understand the Problem
3:40 - Focus on GAPS
5:21 - A better test case for observation
10:20 - problem transforms into Standard sliding window
13:52 - Coding it up!
21:48 - Complexity Analysis

#youcanlearnanything #dsa #education #algorithms #leetcode #easy #arrays #leetcodeproblems #leetcodechallenge #leetcodeing #problemoftheday #problemsolving #dsa #dsaproblems #dsaforbeginners #algorithms #algorithmbasics #algorithmexplained

Видео Day 689 - Observation and pattern finding masterclass to solve LC 3439 - Sliding Window канала Code with AR
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять