- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Increment Submatrices by One | Leetcode 2536 | DSA | HIndi Explaination | Code With Deepak
In this video, we solve Leetcode 2536. Increment Submatrices by One using Java.
Question Link - https://leetcode.com/problems/increment-submatrices-by-one/description/?envType=daily-question&envId=2025-11-14
Solution: https://github.com/deepak-sharma-iOS/Leetcode-Daily-Challenge/blob/main/Leetcode-2536.java
Summary:
This solution uses a **2D difference matrix** to mark rectangle updates in O(1) time per query by updating only the four corners.
After all queries, it applies **row-wise and column-wise prefix sums** to spread these updates across the grid.
Finally, it extracts the first `n × n` portion, producing the fully updated matrix in **O(n² + queries)** time.
Subscribe - https://www.youtube.com/@DebugWithDeepak
Github - https://github.com/deepak-sharma-iOS/Leetcode-Daily-Challenge
Linkedin - https://www.linkedin.com/in/deepak-sharmaa-dev/
#CodeWithDeepak #LeetCodeDailyChallenge #LeetCodeSolutions #DSAforInterviews #CodingWithExplanation #TechInterviewPrep #CrackTheCodingInterview #DailyCodingChallenge #JavaCoding #LearnToCode #CodingShorts #leetcodedailychallenge #euclidean
Видео Increment Submatrices by One | Leetcode 2536 | DSA | HIndi Explaination | Code With Deepak канала Code with Deepak
Question Link - https://leetcode.com/problems/increment-submatrices-by-one/description/?envType=daily-question&envId=2025-11-14
Solution: https://github.com/deepak-sharma-iOS/Leetcode-Daily-Challenge/blob/main/Leetcode-2536.java
Summary:
This solution uses a **2D difference matrix** to mark rectangle updates in O(1) time per query by updating only the four corners.
After all queries, it applies **row-wise and column-wise prefix sums** to spread these updates across the grid.
Finally, it extracts the first `n × n` portion, producing the fully updated matrix in **O(n² + queries)** time.
Subscribe - https://www.youtube.com/@DebugWithDeepak
Github - https://github.com/deepak-sharma-iOS/Leetcode-Daily-Challenge
Linkedin - https://www.linkedin.com/in/deepak-sharmaa-dev/
#CodeWithDeepak #LeetCodeDailyChallenge #LeetCodeSolutions #DSAforInterviews #CodingWithExplanation #TechInterviewPrep #CrackTheCodingInterview #DailyCodingChallenge #JavaCoding #LearnToCode #CodingShorts #leetcodedailychallenge #euclidean
Видео Increment Submatrices by One | Leetcode 2536 | DSA | HIndi Explaination | Code With Deepak канала Code with Deepak
Комментарии отсутствуют
Информация о видео
14 ноября 2025 г. 13:30:28
00:18:15
Другие видео канала





















