- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
LeetCode 10 in 2 minutes RegEx via DP! #algorithmsanddatastructures #leetcode #python
Explaining the solution to ultra-hard LeetCode problem 10 Regular Expression Matching — implementing a custom regex parser supporting characters `.` and `*` using dynamic programming method. In this short video, I explain how state transitions work and why the asterisk allows “backtracking” two positions in the pattern. I show step-by-step filling of the DP matrix from basic cases (empty string + pattern) to final answer at bottom-right corner. Key details include handling `.` as any character and `*` as repetition of previous element zero or more times. The entire solution is based on the logic of `dp[i][j]` matrix where each cell reflects substring match up to current indices. More detailed explanation can be found in my article on Habrahabr. If you are preparing for interviews or studying algorithms, this task must be understood! Subscribe to get weekly breakdowns of complex problems!
#python #coding #interview #softwareengineering
Видео LeetCode 10 in 2 minutes RegEx via DP! #algorithmsanddatastructures #leetcode #python канала whoami // global
#python #coding #interview #softwareengineering
Видео LeetCode 10 in 2 minutes RegEx via DP! #algorithmsanddatastructures #leetcode #python канала whoami // global
Комментарии отсутствуют
Информация о видео
14 мая 2026 г. 23:00:17
00:02:01
Другие видео канала




















