Longest Subarray of 1's After Deleting One Element | Multiple Approaches | GOOGLE | Leetcode-1493

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



Duration: 33:30
2,287 views
151


****Similar Problem : Leetcode - 1004, 487, 485****

Hi everyone, this is the 10th video of our Sliding Window Playlist.
In this video we will try to solve a very good classical Sliding Window problem “Longest Subarray of 1's After Deleting One Element”.

We will write very easy and clean code with intuition building and understanding each line of code.
BRUTE FORCE
SLIDING WINDOW
BETTER SLIDING WINDOW
DRY RUN OF ALL APPROACHES

We will do live coding after explanation and see if we are able to pass all the test cases.


Problem Name : Longest Subarray of 1's After Deleting One Element
Company Tags : GOOGLE, META
My solutions on Github : https://github.com/MAZHARMIK/Interview_DS_Algo/blob/master/Sliding%20Window/Longest%20Subarray%20of%201's%20After%20Deleting%20One%20Element.cpp
Leetcode Link : https://leetcode.com/problems/longest-subarray-of-1s-after-deleting-one-element/


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

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

#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-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
2023-06-30SHOUT OUT TO ALL MY SUBSCRIBERS. Congrats to everyone who got Leetcode June Badge, 2023
2023-06-30Last Day Where You Can Still Cross | BFS | DFS | Binary Search | GOOGLE Onsite | Leetcode-1970