Русские видео

Сейчас в тренде

Иностранные видео


Скачать с ютуб Maximal Rectangle | Multiple Hidden Problems | Intuition | Leetcode 85 | codestorywithMIK в хорошем качестве

Maximal Rectangle | Multiple Hidden Problems | Intuition | Leetcode 85 | codestorywithMIK 2 месяца назад


Если кнопки скачивания не загрузились НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием, пожалуйста напишите в поддержку по адресу внизу страницы.
Спасибо за использование сервиса savevideohd.ru



Maximal Rectangle | Multiple Hidden Problems | Intuition | Leetcode 85 | codestorywithMIK

iPad PDF Notes - https://github.com/MAZHARMIK/Intervie... Whatsapp Community Link : https://www.whatsapp.com/channel/0029... This is the 16th Video of our Playlist "Stack: Popular Interview Problems". In this video we will try to solve a very famous monotonic based problem : Maximal Rectangle | Multiple Hidden Problems | Intuition | Leetcode 85 | codestorywithMIK I will explain the intuition so easily that you will never forget and start seeing this as cakewalk EASYYY. We will do live coding after explanation and see if we are able to pass all the test cases. Also, please note that my Github solution link below contains both C++ as well as JAVA code. Problem Name : Maximal Rectangle | Multiple Hidden Problems | Intuition | Leetcode 85 | codestorywithMIK Company Tags : Amazon, Directi, Intuit, MakeMyTrip, Microsoft, Samsung My solutions on Github(C++ & JAVA) : https://github.com/MAZHARMIK/Intervie... Leetcode Link : https://leetcode.com/problems/maximal... Similar Problem : https://leetcode.com/problems/largest... My DP Concepts Playlist :    • Roadmap for DP | How to Start DP ? | ...   My Graph Concepts Playlist :    • Graph Concepts & Qns - 1 : Graph will...   My Recursion Concepts Playlist :    • Introduction | Recursion Concepts And...   My GitHub Repo for interview preparation : https://github.com/MAZHARMIK/Intervie... Instagram :   / codestorywithmik   Facebook :   / 100090524295846   Twitter :   / cswithmik   Subscribe to my channel :    / @codestorywithmik   Summary : This solution implements the maximal rectangle problem using the concept of the Largest Rectangle in Histogram. Here's a summary of the approach: 1. **NSR (Next Smaller to Right) and NSL (Next Smaller to Left) Functions**: These functions find the index of the next smaller element to the right and left of each element in the input array. They utilize a stack to efficiently find these indices. 2. **MAH (Maximum Area Histogram) Function**: This function calculates the maximum area of a histogram using the NSR and NSL functions. It computes the width of each bar in the histogram and multiplies it by the corresponding height to get the area. Finally, it finds the maximum area among all histograms. 3. **maximalRectangle Function**: This function takes a matrix of characters representing a binary matrix (0s and 1s) where '1' represents land and '0' represents water. It initializes a height array based on the first row of the matrix. Then, for each subsequent row, it updates the height array based on the current row and calculates the maximum area histogram using the MAH function. It iterates through all rows to find the maximum area of the rectangle. Overall, the solution efficiently computes the maximal rectangle area in a binary matrix by treating each row as the base of a histogram and finding the maximum area histogram. ╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗ ║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣ ╠╗║╚╝║║╠╗║╚╣║║║║║═╣ ╚═╩══╩═╩═╩═╩╝╚╩═╩═╝ ✨ Timelines✨ 00:00 - Introduction #coding #helpajobseeker #easyrecipes #leetcode #leetcodequestionandanswers #leetcodesolution #leetcodedailychallenge #leetcodequestions #leetcodechallenge #hindi #india #coding #helpajobseeker #easyrecipes #leetcode #leetcodequestionandanswers #leetcodesolution #leetcodedailychallenge#leetcodequestions #leetcodechallenge #hindi #india #hindiexplanation #hindiexplained #easyexplaination #interview#interviewtips #interviewpreparation #interview_ds_algo #hinglish #github #design #data #google #video #instagram #facebook #leetcode #computerscience #leetcodesolutions #leetcodequestionandanswers #code #learning #dsalgo #dsa #newyear2024

Comments