- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Palindromic Substrings | Count All Palindromes | Brute Force + Optimal (Python, C++, Java)
In this video, we solve the Palindromic Substrings problem from LeetCode, where we need to count all possible palindromic substrings in a given string.
We begin with the brute force approach to build intuition and understand how substrings work, then move to the optimal solution using the expand around center technique.
You will learn:
What exactly is a palindromic substring
Difference between substring and subsequence
Brute force approach and why it is inefficient
Optimal expand around center approach (O(n²))
How to count all palindromes efficiently
Clean and interview-ready code in Python, C++, and Java
This is a very important string problem frequently asked in coding interviews and helps strengthen your understanding of two pointers and string traversal.
Rising Brain (DSA Sheet):
https://www.risingbrain.org/sheet
Connect with me here:
LinkedIn – https://www.linkedin.com/in/anjalikumari22/
Instagram – https://www.instagram.com/rbanjali.codes/
Twitter (X) – https://x.com/anjali1kumari?s=21
Видео Palindromic Substrings | Count All Palindromes | Brute Force + Optimal (Python, C++, Java) канала RisingBrain
We begin with the brute force approach to build intuition and understand how substrings work, then move to the optimal solution using the expand around center technique.
You will learn:
What exactly is a palindromic substring
Difference between substring and subsequence
Brute force approach and why it is inefficient
Optimal expand around center approach (O(n²))
How to count all palindromes efficiently
Clean and interview-ready code in Python, C++, and Java
This is a very important string problem frequently asked in coding interviews and helps strengthen your understanding of two pointers and string traversal.
Rising Brain (DSA Sheet):
https://www.risingbrain.org/sheet
Connect with me here:
LinkedIn – https://www.linkedin.com/in/anjalikumari22/
Instagram – https://www.instagram.com/rbanjali.codes/
Twitter (X) – https://x.com/anjali1kumari?s=21
Видео Palindromic Substrings | Count All Palindromes | Brute Force + Optimal (Python, C++, Java) канала RisingBrain
Комментарии отсутствуют
Информация о видео
12 апреля 2026 г. 20:36:19
00:19:18
Другие видео канала





















