ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

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

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Maximum Side Length of a Square with Sum Less than or Equal to Threshold | 2 Ways | Leetcode 1292

Автор: codestorywithMIK

Загружено: 2026-01-18

Просмотров: 9740

Описание: iPad PDF Notes Link - https://github.com/MAZHARMIK/Intervie...

Whatsapp Community Link : https://www.whatsapp.com/channel/0029...

Hi Everyone, this is the 171st video of our Playlist "Arrays 1D-2D : Popular Interview Problems" by codestorywithMIK.
Today we will be solving a good problem based out of 2D Array and Prefix Sum : Maximum Side Length of a Square with Sum Less than or Equal to Threshold | 2 Approaches | Leetcode 1292 | codestorywithMIK


Problem Name : Maximum Side Length of a Square with Sum Less than or Equal to Threshold | 2 Approaches | Leetcode 1292 | codestorywithMIK
Company Tags : will update later
My solutions on Github(C++ & JAVA) : https://github.com/MAZHARMIK/Intervie...
Leetcode Link : https://leetcode.com/problems/maximum...


My DP Concepts Playlist :    • Roadmap for DP | How to Start DP ? | Topic...  
My Graph Concepts Playlist :    • Graph Concepts & Qns - 1 : Graph will no m...  
My Segment Tree Concepts Playlist :    • Segment Tree | Introduction | Basics | Bui...  
My Recursion Concepts Playlist :    • Introduction | Recursion Concepts And Ques...  
Trie Playlist -    • Word Search II | Leetcode 212 | Detailed |...  
Difference Array Technique: Concepts & Qns :    • Introduction | What | How | Difference Arr...  
My GitHub Repo for interview preparation : https://github.com/MAZHARMIK/Intervie...
Instagram :   / codestorywithmik  
Facebook :   / 100090524295846  
Twitter :   / cswithmik  
Subscribe to my channel :    / @codestorywithmik  

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


Video Summary :
First, build a 2D prefix sum so the sum of any square can be computed in constant time.
Approach 1 : fixes each cell as the top-left corner and keeps expanding the square greedily until the sum crosses the threshold.
Approach 2 : observes that if a square of side k works, smaller squares will also work, so it binary searches on the side length.
Prefix sums are the key that make both approaches efficient by avoiding repeated sum calculations.


✨ Timelines✨
00:00 Introduction
00:25 Motivation
01:05 Problem Explanation
03:21 Constraints Analysis
03:50 Thought Process - Approach - 1
24:08 How to find Prefix sum in 2D Grid ?
36:10 Using Prefix Grid to find Square sum in O(1)
45:01 Coding it up - Approach-1
52:46 Thought Process - Approach - 2
57:58 Coding it up - Approach-2

#MIK #mik #Mik
#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 #coding #programming #100daysofcode #developers #techjobs #datastructures #algorithms #webdevelopment #softwareengineering #computerscience #pythoncoding #codinglife #coderlife #javascript #datascience #leetcode #leetcodesolutions #leetcodedailychallenge #codinginterview #interviewprep #technicalinterview #interviewtips #interviewquestions #codingchallenges #interviewready #dsa #hindi #india #hindicoding #hindiprogramming #hindiexplanation #hindidevelopers #hinditech #hindilearning #helpajobseeker #jobseekers #jobsearchtips #careergoals #careerdevelopment #jobhunt #jobinterview #github #designthinking #learningtogether #growthmindset #digitalcontent #techcontent #socialmediagrowth #contentcreation #instagramreels #videomarketing #codestorywithmik #codestorywithmick #codestorywithmikc #codestorywitmik #codestorywthmik #codstorywithmik #codestorywihmik #codestorywithmiik #codeistorywithmik #codestorywithmk #codestorywitmick #codestorymik #codestorwithmik

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Maximum Side Length of a Square with Sum Less than or Equal to Threshold | 2 Ways | Leetcode 1292

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

Data Structure and Algorithm Patterns for LeetCode Interviews – Tutorial

Data Structure and Algorithm Patterns for LeetCode Interviews – Tutorial

Maximize Area of Square Hole in Grid | Detailed Intuition | Leetcode 2943 | codestorywithMIK

Maximize Area of Square Hole in Grid | Detailed Intuition | Leetcode 2943 | codestorywithMIK

System Design Concepts Course and Interview Prep

System Design Concepts Course and Interview Prep

Construct the Minimum Bitwise Array I & II | Brute Force | Optimal | Leetcode 3314 & 3315 | MIK

Construct the Minimum Bitwise Array I & II | Brute Force | Optimal | Leetcode 3314 & 3315 | MIK

Maximum Square Area by Removing Fences From a Field | Intuition | Leetcode 2975 | codestorywithMIK

Maximum Square Area by Removing Fences From a Field | Intuition | Leetcode 2975 | codestorywithMIK

УРАВНЕНИЕ ПЕЛЛЯ И КВАДРАТИЧНАЯ МАТЕМАТИКА: ВВЕДЕНИЕ!

УРАВНЕНИЕ ПЕЛЛЯ И КВАДРАТИЧНАЯ МАТЕМАТИКА: ВВЕДЕНИЕ!

Largest Magic Square | Simplified Explanation | Leetcode 1895 | codestorywithMIK

Largest Magic Square | Simplified Explanation | Leetcode 1895 | codestorywithMIK

На меня напали… Розыгрыш в спортзале «Анатолий» пошел не так… | Притворился уборщиком

На меня напали… Розыгрыш в спортзале «Анатолий» пошел не так… | Притворился уборщиком

Зачем Зеленскому война с Беларусью?

Зачем Зеленскому война с Беларусью?

Separate Squares I | Understand WHY behind everything | Intuition | Leetcode 3453 | codestorywithMIK

Separate Squares I | Understand WHY behind everything | Intuition | Leetcode 3453 | codestorywithMIK

КАК УСТРОЕН TCP/IP?

КАК УСТРОЕН TCP/IP?

Визуализация внимания, сердце трансформера | Глава 6, Глубокое обучение

Визуализация внимания, сердце трансформера | Глава 6, Глубокое обучение

Introduction | What | Why | Line Sweep Technique | Concepts & Questions - 1 | codestorywithMIK

Introduction | What | Why | Line Sweep Technique | Concepts & Questions - 1 | codestorywithMIK

Изучите Matplotlib за 1 час! 📊

Изучите Matplotlib за 1 час! 📊

Хватит позориться такими If-Else! Это выдает в тебе новичка!

Хватит позориться такими If-Else! Это выдает в тебе новичка!

Понимание GD&T

Понимание GD&T

LLM и GPT - как работают большие языковые модели? Визуальное введение в трансформеры

LLM и GPT - как работают большие языковые модели? Визуальное введение в трансформеры

Minimum Pair Removal to Sort Array II | Detailed Explanation | Leetcode 3510 | codestorywithMIK

Minimum Pair Removal to Sort Array II | Detailed Explanation | Leetcode 3510 | codestorywithMIK

Как учиться быстро и самому? На примере языков  программирования.

Как учиться быстро и самому? На примере языков программирования.

Smoke Mood — Just Relax | Deep House Mix 2026 • Chill / Night Vibes / Stress Relief  #3

Smoke Mood — Just Relax | Deep House Mix 2026 • Chill / Night Vibes / Stress Relief #3

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]