Русский
Открыть в Telegram

Пост Mo's algorithm is an efficient offline query-processing technique based on Square Root (sqrt) Decomposition. It is desig…

6 сентября 2026
P
Problem Solving with Arman (ML+Algo)
Ссылка
нажмите — покажем
Mo's algorithm is an efficient offline query-processing technique based on Square Root (sqrt) Decomposition. It is designed to answer multiple range queries [L, R] on a static array in an optimized order, achieving an overall time complexity ofO((N + Q) * sqrt(N)), where N is the number of elements and Q is the number of queries. Popularized by Chinese competitive programmer Mo Tao, the algorithm allows you to solve range query problems that cannot easily be solved using standard segment trees or Fenwick trees (such as finding the number of distinct elements or the most frequent element in a range). CP Algo Article: https://cp-algorithms.com/data_structures/sqrt_decomposition.html CF Blog about Mo's algorithm: https://codeforces.com/blog/entry/81716 LC Problem to practice: https://leetcode.com/problems/valid-k-unique-subarrays-i #algorithms #notes
1 · 49 ·

Рядом в ленте

PProblem Solving with Arman (ML+Algo)#4032 | Longest Subarray With at Most K Distinct Prime Factors Topics: prime factorization, 2 pointers Problem Statement: You are given an integer array numsconPProblem Solving with Arman (ML+Algo)«Ой да көп, уайым да көп – ойлай берсең, Ой да жоқ, уайым да жоқ – ойнай берсең». © Мұхтар Әуезов
это сообщение
PProblem Solving with Arman (ML+Algo)На прошлом ивенте у меня спрашивали про следующий митап. Скидываю информацию: Приглашаем на AI DevDay! Meetup на тему AI. Вас ждут три доклада от приглашенных сPProblem Solving with Arman (ML+Algo)#Astana Google на DevFest Astana! 🌟💪 Эксперты с Google летят. Это возможность: 1️⃣ Увидеть, как мыслят и работают инженеры одной из самых инновационных компаний
PProblem Solving with Arman (ML+Algo)Problem Solving with Arman (ML+Algo)@armancpp · канал · Технологии
106подписчиков28средний охват поста
Лента площадки Открыть в Telegram

Открытая публичная лента из поискового индекса ChatCrawler — «Google по публичному Telegram»; обновляется по мере обхода площадки. Время — UTC.

Только публичный контент, официальный API Telegram. О проекте · Вопросы · Границы индекса · Убрать страницу из выдачи · Каталог · Поиск · Как мы считаем