Sparse Table & RMQ (Range Minimum Query)

preview_player
Показать описание
Tutorial on Sparse Table data structure. We use it to solve Range Minimum Query by first storing minimum for every interval with a length equal to some power of 2.

Subscribe for more educational videos on algorithms, coding interviews and competitive programming.
Рекомендации по теме
Комментарии
Автор

He's the best competitive programmer in my opinion. He devotes so much to the community. Thankyou errichto!

ayushgaba
Автор

This is a work of art and beauty! There are people who can do but can't teach. Then there are those who can maybe teach but can't do. Then there are legends, who can do both at a mediocre level. And then God said, "Let Errichto be". 🙌. You make complex stuff seem so mind-blowingly simple! Can't thank you enough!

vishnusingh
Автор

This is the greatest tutorial I have ever seen, soo detailed and crystal

utkarshdevgan
Автор

I was looking for sparse table tutorial. When I saw Errichto's video in the list, I knew I couldn't get any luckier.

mrdude
Автор

plz do segment tree.. waiting for a long time..

ahmmedsakibnoman
Автор

Errichto this is so nice and simple explanation I read it in book but did not understand you are really nice at explaining

sureshchaudhari
Автор

The transition from logorithm to constant complexity for each query had put a smile. That was so cool.😎. Excellent explanation. Keep it going.

saikumarganganapalli
Автор

today i am practice codeforces Div2 C problem but i am not able to solve efficiently and seen editorial sparse table algorithm is used then learn this from your lecture then simply solve and learn this concept smart way very thankful for you explanation

anshusingh
Автор

Woah explained so simple, seems like a complex math but it is not once you understand the intent behind thanks a lot for the video

manjuender
Автор

c++ also has builtin function __lg for base-2 logs with integers. Nice and clear explanation (as always)!

magnuseifr
Автор

your balance bracket concept apply div2 B problem in contest get Accepted and my rank under 2500 thanks for you good job

anshusingh
Автор

I don't understand anything you're saying, but your voice is so soothing like ASMR to me

ayamtaken
Автор

may you get all of what you want in life..i respect you

vwv.d
Автор

Can someone explain me what is “1<<k” means? I’ve never seen that before.

QngTu
Автор

Amazing tutorial!!! Really enjoyed it and learned a lot!

sameerbamnaha
Автор

Thanks for this amazing course. Your explanation is just in another level.

loonshott
Автор

Please make detailed videos on segment tree and it various applications( like, min, max, updating, sum, frequency of max frequent element in the asked range etc...)

shivam
Автор

Hi, can I know the name of program used to explain pls?

tripleaplusb
Автор

You explain this beautifully, thank you so much
Hopes you comeback with more explaining video

vietnguyenquoc
Автор

I don't know why people disliked this video.🤷‍♂️🤷‍♂️

subarnodatta