У нас вы можете посмотреть бесплатно # 12.02.2026 [3713. Longest Balanced Substring I] или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
12.02.2026 [3713. Longest Balanced Substring I](https://leetcode.com/problems/longest...) medium [blog post](https://leetcode.com/problems/longest...) [substack](https://open.substack.com/pub/dmitrii...) [youtube]( • # 12.02.2026 [3713. Longest Balanced Subst... )  #### Join me on Telegram https://t.me/leetcode_daily_unstoppab... #### Problem TLDR Max substring with equal frequencies #medium #sliding_window #### Intuition Brute-force. 1. Start from every index. Go to the end. Compute the frequencies, Detect when all f the same. 2. Check every window size decreasing. Compute the frequencies in a sliding window. Stop when all f the same. #### Approach max(f) * uniq = window #### Complexity Time complexity: $$O(26n^2)$$ Space complexity: $$O(1)$$ #### Code https://dmitrysamoylenko.com/2023/07/...