Find maximum element in an array (Largest element)

  Рет қаралды 171,551

Vivekanand Khyade - Algorithm Every Day

Vivekanand Khyade - Algorithm Every Day

Күн бұрын

Write code to find largest /maximum element in an array.

Пікірлер: 142
@dongiveajack
@dongiveajack 4 жыл бұрын
Khyade sir is the best
@Jnoel608
@Jnoel608 5 жыл бұрын
Great video. It’s sometimes difficult to turn your idea into code. This was well explained and way more simple than my solution. Thank You.
@kimlengkoko730
@kimlengkoko730 3 жыл бұрын
Indian programmer always save the world
@vivekanandkhyade
@vivekanandkhyade 3 жыл бұрын
👍👍👍
@shahid5932
@shahid5932 9 ай бұрын
Fr
@adamkhalilinux5743
@adamkhalilinux5743 5 жыл бұрын
hey, brother, I am from Tanzania, you are genius, this was one of difficult part in my c++ class but now see no more cramming, god bless you , programing is not difficult unless you meet wrong teacher, big uppppp
@sonwabomakinana7962
@sonwabomakinana7962 4 жыл бұрын
jambo rafiki ni msawusa(south african)
@pushapabhandarkar6834
@pushapabhandarkar6834 2 жыл бұрын
Mcbc
@virusgamingyt9652
@virusgamingyt9652 2 жыл бұрын
😂😂😂kmmke
@zebull399
@zebull399 Жыл бұрын
Mambo vipi brother am from Uganda, and a software engineer we should be friends
@pandurangvadane443
@pandurangvadane443 6 жыл бұрын
Sir , it is difficult to understand me this algorithm . But after watching this Videos , I easyly understand the logic . THANK You sir
@MSKmr-jh2hq
@MSKmr-jh2hq 2 жыл бұрын
kzbin.info/www/bejne/pZKUq5yvhLVpabs
@KavitaNegi05
@KavitaNegi05 4 жыл бұрын
Thnku so much sir 😊😊you explanation is too much good 👍
@vivekanandkhyade
@vivekanandkhyade 4 жыл бұрын
Keep watching
@ParkerBeaupre
@ParkerBeaupre Жыл бұрын
i don't know why i couldn't figure this out on my own, but this made me understand what I was doing so well. Thank you so much.
@rupuguin9831
@rupuguin9831 9 ай бұрын
Exactly
@movieshome2387
@movieshome2387 2 жыл бұрын
well done sir , you just simplify the concept , Thats the quality of a good teacher........ Good bless you.......🥰🥰🥰🥰🥰
@Hiteshkumar-xg8br
@Hiteshkumar-xg8br 3 жыл бұрын
Your way of teaching is good I was confusing now I am clear.
@Pedro-bu8xd
@Pedro-bu8xd Жыл бұрын
Very clearly explained... Bravo Sir
@teshaleseifu7074
@teshaleseifu7074 2 жыл бұрын
I really appreciate the way you teach............keep up ur good Job!
@bongiwedhlamini3505
@bongiwedhlamini3505 6 жыл бұрын
im so grateful i now understand arrays better than before
@balaportejean7015
@balaportejean7015 5 жыл бұрын
happy for you,i as well Jesus loves you He's the son of God Believe in him and repent
@toolooselowtrek7523
@toolooselowtrek7523 Жыл бұрын
Clean comprehensible code. NICE!
@ZiaShah-k3d
@ZiaShah-k3d Жыл бұрын
Thanks a lot sir I really confused about this program but now I understand it well thanks again stay blessed
@sonwabomakinana7962
@sonwabomakinana7962 4 жыл бұрын
Who does this, who explains a code like this so simply and effortlessly , it's all we need as students ,to get the logic and being able to explain it ourselves to the layman on the street, you explain these algorithms better than my professor, thanks a lot.
@MSKmr-jh2hq
@MSKmr-jh2hq 2 жыл бұрын
kzbin.info/www/bejne/pZKUq5yvhLVpabs
@מחמודשלבי-ח6ר
@מחמודשלבי-ח6ר 4 жыл бұрын
you are the top thank you very much sir you saved my semester. God bless you
@1997-aic
@1997-aic Жыл бұрын
What a great and easy explain sir, thank you ❤
@Dattarjun
@Dattarjun Жыл бұрын
Very great explanation ❤
@ramasharma2602
@ramasharma2602 Жыл бұрын
thankyou so much Sir. I am so confused but after watching your video I got it. thankyou Sir.
@beeducated7916
@beeducated7916 4 жыл бұрын
very help full video , keep it up sir
@melindabosogon1753
@melindabosogon1753 2 жыл бұрын
Very Understandable... Hope you can make lots of videos it's really helpful ❤️❤️❤️
@aartipokhrel3821
@aartipokhrel3821 4 жыл бұрын
I love it you teach so well sir🙏🙏😌
@helena7821
@helena7821 2 жыл бұрын
thankyou mister, it's so understandable love your content. keep going!
@sunny_blue_skies
@sunny_blue_skies 5 жыл бұрын
I enjoyed this video because the logic was explained in detail and simple demonstrating each step. For that, I subscribed.
@Doxa-wl4hb
@Doxa-wl4hb 6 ай бұрын
Great explanation!
@aniruddh4330
@aniruddh4330 5 ай бұрын
great explanation sir thankyou
@NajmiKousar
@NajmiKousar Жыл бұрын
very nice explained. thank you
@UnresponsivePinch
@UnresponsivePinch 3 жыл бұрын
Thanks alot sir i was having difficulty with this program but after watching your video i got the idea how to do it
@abduljayconteh1858
@abduljayconteh1858 2 жыл бұрын
You are very good brother
@IslamicWorld-ox2dv
@IslamicWorld-ox2dv Жыл бұрын
Thanks sir please make more videos!!
@divyac7626
@divyac7626 4 жыл бұрын
Well explained sir
@ndroidLover
@ndroidLover 6 жыл бұрын
Hello Sir i just love your videos... make video on following topics...as u miss it out 1.TSP(Dynamic approach) 2.TSP(Branch & bound) 3.and most imp np hard and np complete problem
@MSKmr-jh2hq
@MSKmr-jh2hq 2 жыл бұрын
kzbin.info/www/bejne/pZKUq5yvhLVpabs
@sauravrajpanda8605
@sauravrajpanda8605 4 жыл бұрын
Thank you sir for explaining properly.
@travhenry3451
@travhenry3451 4 жыл бұрын
Thank you so much very well explained. Keep it up!
@vivekanandkhyade
@vivekanandkhyade 4 жыл бұрын
You are welcome!
@barshome
@barshome 3 жыл бұрын
Hi ,how to find out the maximum 10 values in array in one column of about 100 rows and how to right it in metastock thanks
@patrickkirui5158
@patrickkirui5158 4 жыл бұрын
A good one ,can i find a video on passing arrays to functions
@PrakashKumar-pf5st
@PrakashKumar-pf5st 3 жыл бұрын
what is meaning of--- o(n) time complexcity, sir.
@musicpranker6269
@musicpranker6269 4 жыл бұрын
nice bro Create a program that stores 20 numbers into a multi dementional array and find the largets stored number
@jalalajlan5338
@jalalajlan5338 5 жыл бұрын
very good explanation. so perfect
@ayyubayyyub9415
@ayyubayyyub9415 2 жыл бұрын
Thank you so much this indeed clear and well thought, Also like we can solve this with mathematical way right which makes the process way easier.
@abhishekrajmehta3236
@abhishekrajmehta3236 4 ай бұрын
If you use int max = 0 instead of int max = arr[0] in your code, it might not work correctly in all cases, especially when the array contains only negative numbers. We can't consider 0 as a least element , if we are using arr[0] we are comparing with first element of array.
@manjushreev3153
@manjushreev3153 2 жыл бұрын
Wow ur teacher is nice
@fariyabkhan8095
@fariyabkhan8095 2 жыл бұрын
please upload a video on finding minimum element
@rekildo
@rekildo 6 жыл бұрын
Superb👍
@JossinJax
@JossinJax 6 жыл бұрын
Excellent vid :)
@sujalshah9811
@sujalshah9811 2 жыл бұрын
How to draw the Flowchart of this algorithm?
@fezaiozcan2227
@fezaiozcan2227 Жыл бұрын
nice video thanks
@poonamrakheja1774
@poonamrakheja1774 4 жыл бұрын
please tell me checking the divisibility of 11 without using num modulus 11. for example 20449 is divisible by 11. logic is sum of digits at odd places is 2+4+9 =15.sum of digits at even places is 0+4 =4. . sum at odd places - sum at even places is 0 or 11 0r 22 or things like that then the number is divisible by 11. I think that it should be implemented by using arrrays. another point to be noted is that we can use modulus to separate the digits of the number from the back by using the logic of sum of digits of a number. i will be highly obliged.
@aadityamishra7734
@aadityamishra7734 Жыл бұрын
thanks for explanation sir
@thalabloods2514
@thalabloods2514 Жыл бұрын
Thank you ❤️
@MB-gg3ph
@MB-gg3ph Жыл бұрын
Hi sir, while I am taking max= 20 ( randomly bigger number) output is not changing. (Its bigger number presented in array) how this is happening???
@firibuanyass
@firibuanyass 6 жыл бұрын
You are the best. I would like videos on EULER , AND HAMILTON theory!!!!
@bimalpariyar3732
@bimalpariyar3732 3 жыл бұрын
Subscribed :)
@abduljayconteh1858
@abduljayconteh1858 2 жыл бұрын
Please help me on this question "Finding the duplicate numbers in an array of 10"
@NadiaKanwal-mm6zp
@NadiaKanwal-mm6zp 5 ай бұрын
Thank you sir😊😊😊😊😊😊
@jonaidshahid9976
@jonaidshahid9976 5 жыл бұрын
Please also make algorithm on second largest
@ambermaze4760
@ambermaze4760 4 жыл бұрын
Thanks sir from USA
@ezequielbecerrilgonzalez6946
@ezequielbecerrilgonzalez6946 2 жыл бұрын
Fan from Guadalajaran, Mexico. How to find the largest number in a matrix?
@nithishkumar7063
@nithishkumar7063 4 жыл бұрын
Tq sir,, understood easily
@Ashwinidream190
@Ashwinidream190 6 ай бұрын
Thnks very useful
@sokanoo
@sokanoo Жыл бұрын
salamat idol
@DiyanDevaiah-tm8eh
@DiyanDevaiah-tm8eh Жыл бұрын
given a array DATA with N numerical values, this algorithm finds the location LOC and the value MAX of the largest element of DATA in data structure (solution for this question)
@akshaygole4353
@akshaygole4353 2 жыл бұрын
sir make videos in hindi...it will be very helpfull...and there are more chances of video to reach to every one
@dishadisha2553
@dishadisha2553 8 ай бұрын
You think that national language is Hindi,baka come to sense
@DaSnipy
@DaSnipy 6 жыл бұрын
thanks :) .. very clear explanation. Do you have a website ?
@divyarawat668
@divyarawat668 4 жыл бұрын
Thankyou 😊
@priyankasargar2540
@priyankasargar2540 Жыл бұрын
Write a program to find the maximum and minimum of an array of 10 elements of user given array Can you write it sir?
@Arella-r4k
@Arella-r4k Жыл бұрын
pleaase help me on this (only single-time scanning values while so sorting arrays) question: input arr =[1,0,2,0,2,1,3,4,5] output:[0,0,1,1,2,2,3,4,5] but Here only single scanning not repeating the array elements comparison while sorting the array
@hollywoodmains2843
@hollywoodmains2843 3 жыл бұрын
Make video on array rotation problem
@vivekanandkhyade
@vivekanandkhyade 3 жыл бұрын
Already there on channel
@rohitmane8803
@rohitmane8803 Жыл бұрын
thank you
@vivekanandkhyade
@vivekanandkhyade Жыл бұрын
You're welcome
@sikandarafridi1014
@sikandarafridi1014 3 жыл бұрын
sir tuse great ho
@rayberjany7064
@rayberjany7064 Жыл бұрын
Hi Sir, why do you max = 0?
@eswarij3096
@eswarij3096 3 жыл бұрын
Hi pls explain the algorithm to reverse array element using temp variable
@sachindubey5999
@sachindubey5999 5 жыл бұрын
If each element is
@rantlord8373
@rantlord8373 5 жыл бұрын
Yeah, was wondering the same. Do you got any idea to generalise this for an array containing positive and negative numbers both. I am new to programming.
@dawitsisay507
@dawitsisay507 4 жыл бұрын
use max=array[0] instead
@homeaccount7841
@homeaccount7841 4 жыл бұрын
How can I also print the location of the max
@devanshukumar896
@devanshukumar896 4 жыл бұрын
Here how we can store the maximum element into another variable like x
@bushrarauf1672
@bushrarauf1672 4 жыл бұрын
sir, how to write algorithm to find the largest value in array by recursion
@sagarawasare7715
@sagarawasare7715 4 жыл бұрын
Search on Google
@anshulkaushal2245
@anshulkaushal2245 2 жыл бұрын
Thank you
@iscommendable13
@iscommendable13 2 жыл бұрын
Please or video daliye simple question iteration ki
@Tbm4545
@Tbm4545 8 ай бұрын
Waiylt but wht if all nos r negative this will give 0 as output which is not even present inthe array My suggestion is insted of max = 0 keep max = arr[0]
@npgamer7202
@npgamer7202 Жыл бұрын
Super sir❤
@ShivamPal-u9v
@ShivamPal-u9v Ай бұрын
thanks a lot sir
@NubianQueenVibe
@NubianQueenVibe 2 жыл бұрын
Thank you Teacher
@harikavaleti1950
@harikavaleti1950 5 жыл бұрын
please do a video on kth largest/smallest element in an array...
@sandeepraja1470
@sandeepraja1470 4 жыл бұрын
looking for that
@manjushreev3153
@manjushreev3153 2 жыл бұрын
Please do pattern program also please.... If u have already dun please share the link
@engr.naveedafzal
@engr.naveedafzal 4 жыл бұрын
plz share divide and conquer (recursion) method for finding max element
@polinal4769
@polinal4769 5 жыл бұрын
Thank you!
@aadilchan5338
@aadilchan5338 6 жыл бұрын
Kindly make video on Graph.
@jaysahu357
@jaysahu357 6 жыл бұрын
sir please make a video on graph
@pandurangvadane443
@pandurangvadane443 6 жыл бұрын
Sir i request to u plzzz make 1 video on reversing for loop . How to reverse stack.
@MSKmr-jh2hq
@MSKmr-jh2hq 2 жыл бұрын
kzbin.info/www/bejne/pZKUq5yvhLVpabs
@meetshah4473
@meetshah4473 6 жыл бұрын
Sir plz make the video of c program/algorithm to interchange largest and smallest number in an array using function
@adityaarrya4791
@adityaarrya4791 3 жыл бұрын
but there is a problem when we choose -ve integers then it will return 0 as the max element
@zaby2301
@zaby2301 4 ай бұрын
Can you explain the question more
@hieulequang3000
@hieulequang3000 3 жыл бұрын
thanks u so much
@someshmahajan7903
@someshmahajan7903 4 жыл бұрын
Thanks
@renukadhoundiyal3108
@renukadhoundiyal3108 11 ай бұрын
Thanku sir❤
@barshabhattacharjee6788
@barshabhattacharjee6788 4 жыл бұрын
For more visit : kzbin.info/www/bejne/o4a3fZpvpdSIgpo
@wilfredocagulang6065
@wilfredocagulang6065 Жыл бұрын
thank you sir
@Giggle_Popz
@Giggle_Popz 2 жыл бұрын
Check if there is only one element in the array
@team04pakistani79
@team04pakistani79 3 жыл бұрын
Thanks sir
@lifestyle3017
@lifestyle3017 11 ай бұрын
😮❤❤
@ahmadasifarifeen8218
@ahmadasifarifeen8218 3 жыл бұрын
thanks sir
Merge two sorted Arrays into a third Sorted array
9:31
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 123 М.
Find minimum (Smallest) element in Array
5:38
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 93 М.
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
Find Biggest Element in Array | Logical Programming in C | Naresh IT
5:22
Naresh i Technologies
Рет қаралды 73 М.
c program to find maximum and minimum element of array | Learn coding
13:28
Introduction to Linked Lists (Data Structures & Algorithms #5)
18:47
Print Matrix Diagonally (Diagonal order)
13:22
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 112 М.
Diffie-Hellman Key Exchange: How to Share a Secret
9:09
Spanning Tree
Рет қаралды 173 М.
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН