What is Fast Exponentiation?
This technique of raising a number to a large exponent is often used in competitive programming. We talk about how we can move from the brute force approach of O(N) to O(log(N)) using divide and conquer.
Code:
https://github.com/gkcs/ChainReaction/blob/master/src/main/java/main/java/videos/FastExponentiation.java
References:
https://en.wikipedia.org/wiki/Exponentiation_by_squaring#Basic_method
https://discuss.codechef.com/questions/20451/a-tutorial-on-fast-modulo-multiplication-exponential-squaring
Видео What is Fast Exponentiation? канала Gaurav Sen
Code:
https://github.com/gkcs/ChainReaction/blob/master/src/main/java/main/java/videos/FastExponentiation.java
References:
https://en.wikipedia.org/wiki/Exponentiation_by_squaring#Basic_method
https://discuss.codechef.com/questions/20451/a-tutorial-on-fast-modulo-multiplication-exponential-squaring
Видео What is Fast Exponentiation? канала Gaurav Sen
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Twitter interview Question: Minimum Element Excluding RangeCodingame - Code4Life - Game BotsSystem Design for Freshers? Really? - with Aman BarnwalWhat is low-level design?Software Engineering Whitepapers that are worth reading. Live Readings at InterviewReady.Should I learn advanced concepts as a fresher?How to avoid a single point of failure in distributed systems ✅30 [Software Engineering] research papers you should readFront-End to Full-Stack: 9 Different Types of Software EngineersCS Grad Placement Roadmap: First Year to Fourth YearSoftware Systems: What is a load balancer?Introduction to Mobile System DesignGarbage Collection Algorithms in Java: Concurrent Updates with Optimistic Locking - Part IIISystem Design of Zamzar File Convertor #SystemDesign #OnlineJudgeDynamic Programming - SPOJ - MartianDate Night with System DesignSystem Design BASICS: Horizontal vs. Vertical ScalingLIVE with code_report!System Design Primer ⭐️: How to start with distributed systems?Impeccable API Design: What you MUST CONSIDER before deploying APIs to productionBeginner's Guide to Competitive Programming