No video

Find the Number Of Trailing Zeros In A Factorial | FREE DSA Course in JAVA | Lecture 7

  Рет қаралды 16,130

TAP ACADEMY

TAP ACADEMY

Күн бұрын

Data Structures and Algorithms Free Course (Learn DSA Without Paise) Playlist - • Data Structures And Al...
We are up with the lecture 7 of our much awaited dsa course in java.
Hope you are getting onboarded to the concepts of data structures and algorithms.
We are moving ahead with our mathematics module and have covered topics like, importance of maths, how to find factorial of number, how to find the number of digits in a number.
Moving ahead with our mathematics module, today we will learn about the logic behind finding the number of trailing zeros in the factorial of a number.
There are a lot of methods to find the trailing zeros in a factorial but a good program is one which is the most efficient program ie. take the least time to execute.
Hence we'll learn the best approach to count the number of trailing zeros in a factorial.
Check out the complete Lecture 7 of our free dsa course.
Subscribe to our channel for regular updates on the dsa course and click on the bell icon to never miss an update from our dsa course.
For more information, fill this form: forms.gle/8eiU...
or call us at 8884881203
Facebook: / thetapacademy
Instagram: / tapacademy_online
Linkedin: / 73820805
Website: www.thetapacad...​
#dsa #dsacourse #java #dsainjava #javaprogramming #coding #coder #mathematics #progammer

Пікірлер: 42
@NiteshMaurya1111
@NiteshMaurya1111 Ай бұрын
bhai yakeen nahi ho rha ye sab free hai ❤❤❤❤
@vijay7013
@vijay7013 3 ай бұрын
I think i got dsa master piece course what a explanation simply superb 😊😊
@hackerkrish6290
@hackerkrish6290 Жыл бұрын
The condition of the while loop should be corrected to "while(n>=powOf5)". Please do notice the error in the while loop.
@NishitaAgrawal-yl9lf
@NishitaAgrawal-yl9lf 2 ай бұрын
The Explanation is really good...now I feel I can learn DSA😊😊
@11csepratikshaargulewar71
@11csepratikshaargulewar71 Жыл бұрын
Sir n>=powof5
@madeinscript4623
@madeinscript4623 2 ай бұрын
Clear and concise! Perfect for an average student like me. Thanks, Rohit
@AshutoshKumar-kb8jx
@AshutoshKumar-kb8jx 7 ай бұрын
outstanding explaination
@sultanajahir8958
@sultanajahir8958 5 ай бұрын
that was truly amazing . Superb explanation!
@anurag_rathore1
@anurag_rathore1 4 ай бұрын
beautifully explained 👍
@adishjain2507
@adishjain2507 7 ай бұрын
Nicely explained, thanks a lot
@sreejareddy1820
@sreejareddy1820 Жыл бұрын
Thank you
@vaibhavnathe2188
@vaibhavnathe2188 Жыл бұрын
Great explaining sir, Thank you👍✨
@TAPACADEMY
@TAPACADEMY Жыл бұрын
You are welcome
@xiiela
@xiiela 8 ай бұрын
This channel is amazing. Please keep up thegood work
@srinidhibavusaipeta4849
@srinidhibavusaipeta4849 9 ай бұрын
Thank you so much sir it was very helpful who want to learn the java skills thank you once again sharing valuable information
@subhadipkundu6058
@subhadipkundu6058 11 ай бұрын
While watching these explanation , I had a solution in my mind, here it is n= 200; 200/5 = 40; 40/5 = 8; 8/5 = 1; 1/5 = 0(stop); return (40+8+1+0)= 49; code: int trailingZeroes(int N) { int result =0; while(N>0){ result = result+ N/5; N = N/5; } return result; }
@xiiela
@xiiela 8 ай бұрын
This is a very concise solution
@sumanbaral5781
@sumanbaral5781 Жыл бұрын
Amazing Sir
@immortalveejay
@immortalveejay Жыл бұрын
Perfect
@TAPACADEMY
@TAPACADEMY Жыл бұрын
Thanks. Stay tuned and subscribe to the channel as well.
@wul_frik
@wul_frik Жыл бұрын
Really Amazing Explanation
@newtechhacaks
@newtechhacaks Жыл бұрын
Amazing ❤❤❤
@hackerkrish6290
@hackerkrish6290 Жыл бұрын
u r the best rohit
@namratasingh711
@namratasingh711 7 ай бұрын
You are amazing 👏👏. One more alternate way to solve this program. public class TrailingZero { public static int countTrailingzero(int n) { int count = 0; while (n > 0) { n = n / 5; count = count + n; } return count; } public static void main(String[] args) { int n = 25; System.out.println(countTrailingzero(n)); } }
@raghuvaranr6862
@raghuvaranr6862 Жыл бұрын
It's really nice ☺️
@TAPACADEMY
@TAPACADEMY Жыл бұрын
Thank you! Cheers!
@TalkingAnimals7
@TalkingAnimals7 Жыл бұрын
Amazing explanation 👍👍
@kirtijangid48
@kirtijangid48 Жыл бұрын
Very nice.... Liked it
@purenoorvibes
@purenoorvibes Жыл бұрын
Gold😍
@TAPACADEMY
@TAPACADEMY Жыл бұрын
Thanks Man.
@Uni-explore108
@Uni-explore108 8 ай бұрын
Alternate: Int n=10; Int fact=1; Int count=0; for (int i=0;i0) { Int r=fact%10; If(r==0) { Count++; fact=fact/10; } else { break; } } System.out.println("the trailing zero are"+count);
@chethanstudios899
@chethanstudios899 Жыл бұрын
From 19:00 Mins, the expression in algorithm is "n=powOf5" till the end of video.😇
@gayathrimacherla4308
@gayathrimacherla4308 Жыл бұрын
I am consistent plz upload video on daily basis
@TAPACADEMY
@TAPACADEMY Жыл бұрын
Surely we will upload course videos daily. Do subscribe and turn on the notification for regular updates.
@RajYadav-yh7vv
@RajYadav-yh7vv 8 ай бұрын
lengthy video, please explain the precise part only, unnecessarily time waste for this small problem.anyway good explanation with visualization Alternative Best approach: let count = 0; while (n >= 5) { n = Math.floor(n / 5); count =count + n; } return count;
@chanduroyal4330
@chanduroyal4330 Жыл бұрын
instead greater than symbol mentioned as a less than operator
@wul_frik
@wul_frik Жыл бұрын
Here the time complexity will be O(log5n), right?
@arbazahmadkhan9128
@arbazahmadkhan9128 Жыл бұрын
👍🏻🔥🔥🔥
@TAPACADEMY
@TAPACADEMY Жыл бұрын
thanks
@raghunathareddychavva2085
@raghunathareddychavva2085 Жыл бұрын
@shashikumar8167
@shashikumar8167 Жыл бұрын
will this program work for 8 , 5........
@travelpayya2668
@travelpayya2668 Жыл бұрын
Sir😂
Rambling "life story" | AvPD symptoms over time
52:49
Jake - AvPD
Рет қаралды 6 М.
Prank vs Prank #shorts
00:28
Mr DegrEE
Рет қаралды 11 МЛН
what will you choose? #tiktok
00:14
Анастасия Тарасова
Рет қаралды 7 МЛН
Before VS during the CONCERT 🔥 "Aliby" | Andra Gogan
00:13
Andra Gogan
Рет қаралды 10 МЛН
I don't know if this is my mental illness or spiritual warfare
10:11
Create Compassion Christian Collective
Рет қаралды 1,4 М.
Number of zeroes at the end of n! (n- factorial)
12:13
IIT Foundation Mathematics by Sanjay Jain
Рет қаралды 12 М.
INDIA'S GOT LATENT | EP 02 ft. @GamerFleet @JokeSingh @KaranSinghMagic
1:06:10
I gave 127 interviews. Top 5 Algorithms they asked me.
8:36
Sahil & Sarra
Рет қаралды 644 М.
Kolkata Case | Why is India so UNSAFE For Women? | Dhruv Rathee
26:58
Dhruv Rathee
Рет қаралды 16 МЛН
Prank vs Prank #shorts
00:28
Mr DegrEE
Рет қаралды 11 МЛН