音が流れない場合、再生を一時停止してもう一度再生してみて下さい。
ツール 
画像
GreeDyPi
2221回再生
Sweep Line pt.1 (Maths for CP series)

I have covered questions of Sweep like Subarray sum, KQUERY, DQUERY

Notes:
Main idea behind sweep is that we fix one pointer or dimension and update remaining points according to that. Also the updation process is monotonous that is we only add or remove only once from our data structure that is convenient to us.


Links from the video:
SPOJ KQUERY : www.spoj.com/problems/KQUERY/
KQUERY code: p.ip.fi/uZAm
SPOJ DQUERY : www.spoj.com/problems/DQUERY/
DQUERY code: p.ip.fi/LEZB

Practice Problems :

www.codechef.com/problems/PAINTERP
www.codechef.com/problems/LAZER
www.hackerrank.com/contests/hackerrank-hackfest-20…

コメント