Question DSA-MATH-0032
EasyWhat is the time complexity of fast (binary) exponentiation to compute aⁿ?
- A.
O(n)
- B.
O(log n)
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Math and Number Theory question
What is the time complexity of fast (binary) exponentiation to compute aⁿ?
O(n)
O(log n)
Sign up free to see the answer and a step-by-step explanation.
O(n²)
O(1)