Computations Modulo P in Competitive Programming

Опубликовано: 27 Май 2020
на канале: Errichto Algorithms
141,822
5.1k

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%2... 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:    / errichto2   &   / errichto  
FB and Twitter:   / errichto   &   / errichto  
Frequently Asked Questions: https://github.com/Errichto/youtube/w...

#Coding #Programming


На этой странице сайта вы можете посмотреть видео онлайн Computations Modulo P in Competitive Programming длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Errichto Algorithms 27 Май 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 141,822 раз и оно понравилось 5.1 тысяч зрителям. Приятного просмотра!