Mastering Modulo P Calculations for Competitive Programming ๐งฎ
Learn essential techniques for performing computations modulo P in competitive programming. Perfect for beginners tackling Codeforces problems that require modular arithmetic for efficient and correct solutions.

Errichto Algorithms
137.8K views โข May 27, 2020

About this video
Tutorial for beginners on computations modulo P in competitive programming. In so many Codeforces problems, we need to print the answer modulo M, most often M=10^9+7. What's the reason for that and how should it affect your code? Why modular subtraction is tricky and division even more difficult (modular inverse uses this https://en.wikipedia.org/wiki/Euler%27s_theorem)? Watch the video, then solve introductory problems here https://cses.fi/problemset/ and read Competitive Programmer's Handbook for some structured knowledge https://cses.fi/book/book.pdf
Subscribe for more educational videos on algorithms, coding interviews and competitive programming.
- Github repository: https://github.com/Errichto/youtube
- Live streams on 2nd YT channel and on Twitch: https://www.youtube.com/errichto2 & https://www.twitch.tv/errichto
- FB and Twitter: https://www.facebook.com/errichto & https://twitter.com/errichto
- Frequently Asked Questions: https://github.com/Errichto/youtube/wiki/FAQ
#Coding #Programming
Subscribe for more educational videos on algorithms, coding interviews and competitive programming.
- Github repository: https://github.com/Errichto/youtube
- Live streams on 2nd YT channel and on Twitch: https://www.youtube.com/errichto2 & https://www.twitch.tv/errichto
- FB and Twitter: https://www.facebook.com/errichto & https://twitter.com/errichto
- Frequently Asked Questions: https://github.com/Errichto/youtube/wiki/FAQ
#Coding #Programming
Tags and Topics
Browse our collection to discover more content in these categories.
Video Information
Views
137.8K
Likes
5.0K
Duration
18:15
Published
May 27, 2020
User Reviews
4.7
(27) Related Trending Topics
LIVE TRENDSRelated trending topics. Click any trend to explore more videos.