Sums and GCD : June 2019 ChallengeVideo editorial

SUMAGCD

If you find the video helpful , please help us to keep us motivated , like the video , comment and please subscribe.
This would help me to keep going.

Thank you for watching my videos.

3 Likes

Bro make video on intersecting paths

2 Likes

YESSSSSSSSSSSSSSS please make one on INTERPATH

ohhk man , i will try my best for that.

Keep up the good work buddy .

thanks man , you guys are my real Motivation

i am working on it man.

when can we expect editorial for intersecting paths.

And here i was using segment trees to maintain the range gcd and then querying it to find the sum.
Though the time complexity would still be O(nlogn) the array to store the prefix gcd and suffix gcd is easier to code.

yes , it is easy to code and a little fast to code too.

1 Like

soon enough hopefully

Thank you, you are the real heroes on this platform.

1 Like

well that’s great complement , thank you :innocent:

1 Like