Maximize the Confusion of an Exam | 3 Approaches | MICROSOFT | Leetcode-2024 | Explanation

Subscribers:
92,300
Published on ● Video Link: https://www.youtube.com/watch?v=vY06L8hZVGI



Duration: 41:16
1,843 views
136


Similar Leetcode Problem : https://leetcode.com/problems/max-consecutive-ones-iii/
Hi everyone, this is the 11th video of our Sliding Window Playlist.
In this video we will try to solve a very good and classic Sliding Window Based Qn “Maximize the Confusion of an Exam”.

We will write very easy and clean code. And we will be solving it using 3 different approaches :
1. Brute Force - TLE
2. 2-Pass Sliding Window - ACCEPTED
3. 1-Pass Sliding Window - ACCEPTED
We will do live coding after explanation and see if we are able to pass all the test cases.


Problem Name : Maximize the Confusion of an Exam
Company Tags : MICROSOFT
My solutions on Github : https://github.com/MAZHARMIK/Interview_DS_Algo/blob/master/Sliding%20Window/Maximize%20the%20Confusion%20of%20an%20Exam.cpp
Leetcode Link : https://leetcode.com/problems/maximize-the-confusion-of-an-exam/


My GitHub Repo for interview preparation : https://github.com/MAZHARMIK/Interview_DS_Algo
Subscribe to my channel : https://www.youtube.com/@codestorywithMIK
Instagram : https://www.instagram.com/codestorywithmik/
Facebook : https://www.facebook.com/people/codestorywithmik/100090524295846/
Twitter : https://twitter.com/CSwithMIK

╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗
║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣
╠╗║╚╝║║╠╗║╚╣║║║║║═╣
╚═╩══╩═╩═╩═╩╝╚╩═╩═╝

00:00 - Introduction
3:32 - Brute Force
10:21 - Coding Brute Force
15:28 - 2-Pass Sliding Window
24:38 - Coding 2-Pass Sliding Window
27:46 - 1-Pass Sliding Window
35:41 - Story Points
39:10 - Coding 1-Pass Sliding Window



#coding #helpajobseeker #easyrecipes #leetcode #leetcodequestionandanswers #leetcodesolution #leetcodedailychallenge #leetcodequestions #leetcodechallenge #hindi #india #hindiexplanation #hindiexplained #easyexplaination #interview #interviewtips
#interviewpreparation #interview_ds_algo #hinglish




Other Videos By codestorywithMIK


2023-07-14Longest Arithmetic Subsequence of Given Difference | Recur + Memo | Optimal | META | Leetcode-1218
2023-07-13Maximum Alternating Subsequence Sum |Recursion & Memo|Tree Diagram|DP Concepts & Qns-9|Leetcode-1911
2023-07-12Find Eventual Safe States | 2 Approaches | Intuition | Leetcode-802 | MICROSOFT | Explanation
2023-07-11Make the most if this 6 months remaining in Year 2023 . #motivation #hardwork #motivational
2023-07-11All Nodes Distance K in Binary Tree | Approach-1 | Leetcode-863 | AMAZON | Explanation ➕ Live Coding
2023-07-10Prim's Algorithm | Minimum Spanning Tree | Full Dry Run | INTUITION | Graph Concepts & Qns - 34
2023-07-10Minimum Depth of Binary Tree | Leetcode-111 | BFS | DFS | AMAZON | Explanation ➕ Live Coding
2023-07-09CONSISTENCY is the 🔑 #consistency #motivation #hardwork #determination #coding #interview #coding
2023-07-09Substring With Largest Variance | Full Dry Run | Leetcode-2272 | AMAZON, GOOGLE | Explanation
2023-07-08Put Marbles in Bags | Full Intuition | Dry Run | Leetcode-2551 | AMAZON | Explanation ➕ Live Coding
2023-07-07Maximize the Confusion of an Exam | 3 Approaches | MICROSOFT | Leetcode-2024 | Explanation
2023-07-05Minimum Size Subarray Sum | GOOGLE | AMAZON | Leetcode-209 | Explanation ➕ Live Coding
2023-07-04Longest Subarray of 1's After Deleting One Element | Multiple Approaches | GOOGLE | Leetcode-1493
2023-07-04Single Number II | Multiple Approaches | GOOGLE, AMAZON | META | Leetcode-137 | Explanation
2023-07-03Trust the process #hardwork #confidence #coding #motivation #motivational #motivationalvideo #reels
2023-07-02Buddy Strings | GOOGLE | META | Leetcode-859 | Explanation ➕ Live Coding
2023-07-02Thank you for 5k Subscribers #thankyou #subscribe #subscribers #support #coding #easyrecipes #love
2023-07-02Maximum Number of Achievable Transfer Requests | Khandani Backtracking Template | Leetcode-1601
2023-07-02Thank you all for 100 Instagram Followers ❤️#instagram #instalike #reelsinstagram #100followers
2023-07-01Trust the process #hardwork #patience #consistency #preparation #coding #dsa #motivation #reels
2023-07-01Fair Distribution of Cookies | Khandani Backtracking Template | Leetcode-2305 | Explanation + Coding