Trailing zeros in factorial number - (DSA Math Trick)
Автор: Akshay Misal
Загружено: 2025-11-28
Просмотров: 40
Learn How to count trailing zeros in n! (Factorial) using the optimal log n solution
No need to compute factorials!
In this video
Understand the DSA problem
How to find trailing zeros using pair 5*2
Why we need to count number of 5’s
Formula. N/5 N/25 N/125 …
Mathematical trick explained
Java code
Time complexity
Examples and Explaination
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: