Program To Find GCD Or HCF Of Two Given Numbers In Java | FREE DSA Course in JAVA | Lecture 8

  Рет қаралды 22,470

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 8 of our much awaited dsa course in java.
As we are proceeding with our mathematics module of our DSA course, today we will learn how to find the greatest common divisor or highest common factor of given two numbers.
This is a very basic concept in your journey to competitive programming or many a times companies directly ask for GCD or HCF of two given numbers in the coding round of placement.
Hence in our data structures and algorithms series, we feel it is important for you to learn the method to find the gcd/hcf of two number.
In this video we will learn the complete logic behind the program using the AR technology as well as a proper code for the same.
So without wasting any time, let's jump to our lecture 8 of free dsa course for job placement in java.
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/8eiUmM92Fx563Aen9
or call us at 8884881203
Facebook: / thetapacademy
Instagram: / tapacademy_online
Linkedin: / 73820805
Website: www.thetapacademy.com​
#dsa #dsacourse #java #dsainjava #javaprogramming #coding #coder #gcd #hcf

Пікірлер: 56
@AjitKumar-gn1se
@AjitKumar-gn1se 5 ай бұрын
The video might seem too long for people who are looking for a GCD/HCF program. However, once you watch it, the concepts will stick with you and help you whenever you think of GCD and HCF programs. I am a big fan of this man's explanation. Hats off to him!
@shilpamanikkan7118
@shilpamanikkan7118 Жыл бұрын
Seriously no words!! this lecture was just perfect. I dint even realize that it was 43 mins video👏👏 Totally worth it💯
@TAPACADEMY
@TAPACADEMY Жыл бұрын
Glad you liked it! Do subscribe to the channel.
@shilpamanikkan7118
@shilpamanikkan7118 Жыл бұрын
@@TAPACADEMY done already.. pls post videos that helps in logic building in java.. i am working as backend developer in Java.. it will be so helpful 😊
@harichandra1131
@harichandra1131 Жыл бұрын
This channel deserves millions+ Subscriber's Such an amazing explanation 🙀
@yunik_developer
@yunik_developer Ай бұрын
The best thing is that he covered all exceptions and errors which we will definitely do and it will remember in our mind great explanation
@kundrapuharika6294
@kundrapuharika6294 5 ай бұрын
My god it's unbelievable,this man has explained everything crystal clearly,I feel extremely happy to find this video Thanks a lot sir👏
@hemambuja-dq6es
@hemambuja-dq6es 9 ай бұрын
I'm truly amazed by how wonderfully you explained this. Your explanation has left me in awe. Please continue to share your videos, sir!
@varsharajput243
@varsharajput243 4 ай бұрын
you make every algo so simple and easy.Kudos for your effort.
@abhimanyu8131
@abhimanyu8131 11 ай бұрын
mann you are insane !! loved the way you taught!
@user-ds4ym3hs4e
@user-ds4ym3hs4e 10 ай бұрын
Sir I have became your fan, by seeing this single video. Literally great 👍 👌 👏 .Not getting any words to appreciate your explanation. Really amazing explanation.
@protuctivity-sn3fm
@protuctivity-sn3fm 10 ай бұрын
Best/Perfect Explaination ever ..... 💥
@wul_frik
@wul_frik Жыл бұрын
Really great explanation.
@jjoelthomas
@jjoelthomas 5 ай бұрын
Excellent. Amazing. Hats off
@Hmd_hk
@Hmd_hk 4 ай бұрын
the way you explain things and make them look so easy is just amazing. keep up the good work man. loves from germany,.
@devrajdpk
@devrajdpk Жыл бұрын
Oh my God!, such an amazing explanation. Your video was just recommended by KZbin and I watch it from start to end. Thanks a lot, man.❤❤❤
@simalinaaz5640
@simalinaaz5640 11 ай бұрын
the best explaination ever!
@bindu6790
@bindu6790 7 ай бұрын
Excellent man,superb explanation
@raghuvaranr6862
@raghuvaranr6862 Жыл бұрын
Superb explanation 👌 . I never seen thease kind of quality lectures and explanation before.
@TAPACADEMY
@TAPACADEMY Жыл бұрын
Glad to hear that. Stay tuned and do share our course in your community.
@venkadeshb7973
@venkadeshb7973 11 ай бұрын
​ @TAPACADEMY Can you please clarify at 42:50 why the Optimized Euclid Algorithm has O = log(Min(a,b)) ? Since the iterations occur for Max value and we keep dividing the Max value hence it should be O = log(Max(a,b)) right?
@arushitandon4766
@arushitandon4766 3 ай бұрын
Wow! Your explanation is spot on. Thank you, sir, for providing such informative content.
@Englishwithhimanshu8581
@Englishwithhimanshu8581 8 ай бұрын
Sir good job sir I understand fully clear
@SP-bs4nk
@SP-bs4nk Жыл бұрын
This video is incredibly informative! I've been struggling with this concept for a while, and your explanation made it so much clearer.
@TAPACADEMY
@TAPACADEMY Жыл бұрын
Glad to know this. Do subscribe to our channel and share it within your community.
@sanskritigupta4445
@sanskritigupta4445 11 ай бұрын
beautiful explanation sir!!
@be-a-06-surabhibandabe56
@be-a-06-surabhibandabe56 7 ай бұрын
Great explanation
@abhishekkumar-xm3nj
@abhishekkumar-xm3nj 9 ай бұрын
Sir the way that you are teaching its equal to that Gabriel lame algorithm that reduce reduce our time complexity and Save our data also , because after watching your video We do not have to open any other video Sir you have amazing communication skill. 🙏🙏🙏🙏
@bokinalavijay6876
@bokinalavijay6876 8 ай бұрын
Thank you sir ❤
@116_likhitawanjari2
@116_likhitawanjari2 9 ай бұрын
very nice and typemaster also greate.
@arbazahmadkhan9128
@arbazahmadkhan9128 Жыл бұрын
Super se upar 👍🏻
@poornacreations2403
@poornacreations2403 Жыл бұрын
Excellent💯👏
@hrithikrudra4292
@hrithikrudra4292 Жыл бұрын
Awesome 👍👍
@user-ik1dr8ud4h
@user-ik1dr8ud4h 5 ай бұрын
Amazing 🎉🎉
@user-zf7hq4yk4c
@user-zf7hq4yk4c 11 ай бұрын
just perfect in one word i can say u are!!!the way u explain omg xoxo
@abhalad2582
@abhalad2582 9 ай бұрын
yes we are able to think sir!!😀😀
@sharonjoe7535
@sharonjoe7535 6 ай бұрын
you are criminally underrated
@techtuber1344
@techtuber1344 Жыл бұрын
Great explaination i wish everyone teaches like you :) it will be easier to understand dsa.
@TAPACADEMY
@TAPACADEMY Жыл бұрын
Thanks man. Do subscribe to the channel for regular tips and lecture updates of the dsa course.
@amansrivastav6885
@amansrivastav6885 10 ай бұрын
nice explanation
@kaveridhore4398
@kaveridhore4398 Жыл бұрын
Best explaination! Thankyouu so much to make this a easy one
@TAPACADEMY
@TAPACADEMY Жыл бұрын
You're welcome 😊
@user-ux7xh5ji2e
@user-ux7xh5ji2e 9 ай бұрын
can you please explain how to understand the logic for leetcode and hacker rank problems. your explanation is very good and understand easily
@nidhisagar6810
@nidhisagar6810 7 ай бұрын
@yfjsdgzjdnfn
@yfjsdgzjdnfn 11 ай бұрын
41:32
@Hasan_770
@Hasan_770 10 ай бұрын
when calculating frequency 'i' value will be 'i--' (post decrement) not 'i++ '.thanks for this video sir.16:22/43:24
@bhuvanastutorial373
@bhuvanastutorial373 5 ай бұрын
can you explain 17:00 , how min+1 will be the frequency , it will be min only sir.
@manojkumarmahanta3879
@manojkumarmahanta3879 Жыл бұрын
You are really awesome...... Please make a video of how to calculate LCM of an array
@TAPACADEMY
@TAPACADEMY Жыл бұрын
We have made a video on how to calculate LCM in our DSA course. You can use similar concepts.
@aldricanto7724
@aldricanto7724 11 ай бұрын
what about this code sir ? static int hcf(int x , int y) { if(y==0) { return x; } else { return hcf(y,x%y); } } public static void main(String[] args) { int x = 0; int y = 19; System.out.println(hcf(x,y)); } }
@11csepratikshaargulewar71
@11csepratikshaargulewar71 Жыл бұрын
Sir ,it should be (log(max(a,b))) not O(log(min(a,b))) as this is a optimised version of Euclid algorithm only in gabriel lame algorithm
@Oneinlove123
@Oneinlove123 Жыл бұрын
please upload 3 or 4 videos daily ..my humble request
@sagarhaldhar2151
@sagarhaldhar2151 10 ай бұрын
One day this channel will become A million followers channel Great work by you sir
@chari_gaming8325
@chari_gaming8325 Жыл бұрын
Hlo bro
@satpalghorela4046
@satpalghorela4046 Жыл бұрын
// please calculate time complexity in this program . class gcd { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c; while (b != 0) { c = a % b; a = b; b = c; } System.out.print("the gcd is: " + a); } }
@51nishanthi.s71
@51nishanthi.s71 5 ай бұрын
amazing bro
MEGA BOXES ARE BACK!!!
08:53
Brawl Stars
Рет қаралды 35 МЛН
Was ist im Eis versteckt? 🧊 Coole Winter-Gadgets von Amazon
00:37
SMOL German
Рет қаралды 32 МЛН
Children deceived dad #comedy
00:19
yuzvikii_family
Рет қаралды 8 МЛН
1❤️
00:17
Nonomen ノノメン
Рет қаралды 13 МЛН
100+ Linux Things you Need to Know
12:23
Fireship
Рет қаралды 111 М.
What is Python memory management?  | Tamil
1:25
Code Purple Academy
Рет қаралды 40
Java program to print array elements in reverse order
1:03
Computer Society
Рет қаралды 536
Java Program #29 - Find GCD of two Numbers in Java
10:43
Programming For Beginners
Рет қаралды 3,3 М.
Python Tutorials - Program To Find out the GCD of Two Positive Numbers
13:11
I gave 127 interviews. Top 5 Algorithms they asked me.
8:36
Sahil & Sarra
Рет қаралды 612 М.
Sherlock and array
22:40
TAP ACADEMY
Рет қаралды 1 М.
Program to find HCF/GCD | Java
8:33
B Tech Computer Science
Рет қаралды 12 М.
MEGA BOXES ARE BACK!!!
08:53
Brawl Stars
Рет қаралды 35 МЛН