Modular exponentiation - using Recursion @mycodeschool
Modular exponentiation - using Recursion  @mycodeschool
Uploaded October 2012 | Updated September 2026, 2 weeks ago
See complete series on recursion here
youtube.com/playlist?list=PL2_aWCzGMAwLz3g66WrxFGSXvSsvyfzCO
In this lesson, we will see an efficient recursive algorithm to calculate (x^n)%M - (x to power n modulo n)

Prerequisite: Basic knowledge of recursion in programming.
Modular exponentiation - using RecursionTime and space complexity analysis of recursive programs - using factorialMaximum sum sub-arrayData structures: Array implementation of QueueCount occurrences of a number in a sorted array with duplicates using Binary SearchData structures: Binary Search TreeIntroduction to sorting algorithmsTime Complexity analysis of recursion - Fibonacci SequenceData structures: Introduction to TreesData structures: Array implementation of stacksPointers and 2-D arraysReverse a linked list - Iterative method
mycodeschool |

Modular exponentiation - using Recursion

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER