Find maximum element in an array (Largest element)

Sdílet
Vložit
  • čas přidán 11. 04. 2018
  • Write code to find largest /maximum element in an array.

Komentáře • 137

  • @dongiveajack
    @dongiveajack Před 3 lety +17

    Khyade sir is the best

  • @kimlengkoko730
    @kimlengkoko730 Před 2 lety +14

    Indian programmer always save the world

  • @Jnoel608
    @Jnoel608 Před 5 lety +13

    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.

  • @pandurangvadane443
    @pandurangvadane443 Před 6 lety +18

    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 Před rokem

      czcams.com/video/oa1ziyOP63Y/video.html

  • @neftalisalazar2352
    @neftalisalazar2352 Před 4 lety +1

    I enjoyed this video because the logic was explained in detail and simple demonstrating each step. For that, I subscribed.

  • @helena7821
    @helena7821 Před rokem

    thankyou mister, it's so understandable
    love your content. keep going!

  • @ParkerBeaupre
    @ParkerBeaupre Před 7 měsíci +1

    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.

  • @adamkhalilinux5743
    @adamkhalilinux5743 Před 4 lety +10

    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

  • @toolooselowtrek7523
    @toolooselowtrek7523 Před 5 měsíci

    Clean comprehensible code. NICE!

  • @sonwabomakinana7962
    @sonwabomakinana7962 Před 3 lety +1

    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 Před rokem

      czcams.com/video/oa1ziyOP63Y/video.html

  • @JossinJax
    @JossinJax Před 5 lety +1

    Excellent vid :)

  • @bongiwedhlamini3505
    @bongiwedhlamini3505 Před 5 lety +1

    im so grateful i now understand arrays better than before

    • @balaportejean7015
      @balaportejean7015 Před 4 lety

      happy for you,i as well
      Jesus loves you
      He's the son of God
      Believe in him and repent

  • @bimalpariyar3732
    @bimalpariyar3732 Před 3 lety

    Subscribed :)

  • @Doxa-wl4hb
    @Doxa-wl4hb Před 13 dny

    Great explanation!

  • @teshaleseifu7074
    @teshaleseifu7074 Před rokem

    I really appreciate the way you teach............keep up ur good Job!

  • @musicpranker6269
    @musicpranker6269 Před 3 lety

    nice bro
    Create a program that stores 20 numbers into a multi dementional array and find the largets stored number

  • @melindabosogon1753
    @melindabosogon1753 Před rokem

    Very Understandable... Hope you can make lots of videos it's really helpful ❤️❤️❤️

  • @travhenry3451
    @travhenry3451 Před 3 lety

    Thank you so much very well explained. Keep it up!

  • @polinal4769
    @polinal4769 Před 4 lety

    Thank you!

  • @movieshome2387
    @movieshome2387 Před rokem

    well done sir , you just simplify the concept , Thats the quality of a good teacher........
    Good bless you.......🥰🥰🥰🥰🥰

  • @1997-aic
    @1997-aic Před rokem

    What a great and easy explain sir, thank you ❤

  • @patrickkirui5158
    @patrickkirui5158 Před 3 lety +1

    A good one ,can i find a video on passing arrays to functions

  • @barshabhattacharjee6788

    For more visit :
    czcams.com/video/mUTLg9poUL8/video.html

  • @Pedro-bu8xd
    @Pedro-bu8xd Před 10 měsíci

    Very clearly explained... Bravo Sir

  • @Hiteshkumar-xg8br
    @Hiteshkumar-xg8br Před 3 lety

    Your way of teaching is good I was confusing now I am clear.

  • @ayyubayyyub9415
    @ayyubayyyub9415 Před 2 lety

    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.

  • @user-ly2qn3ql9c
    @user-ly2qn3ql9c Před 4 lety +1

    you are the top thank you very much sir you saved my semester. God bless you

  • @jalalajlan5338
    @jalalajlan5338 Před 5 lety

    very good explanation. so perfect

  • @Itxbilalch
    @Itxbilalch Před 3 lety

    Thanks alot sir i was having difficulty with this program but after watching your video i got the idea how to do it

  • @hieulequang3000
    @hieulequang3000 Před 3 lety

    thanks u so much

  • @Dattarjun
    @Dattarjun Před rokem

    Very great explanation ❤

  • @fezaiozcan2227
    @fezaiozcan2227 Před rokem

    nice video thanks

  • @ndroidLover
    @ndroidLover Před 6 lety +1

    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 Před rokem

      czcams.com/video/oa1ziyOP63Y/video.html

  • @DaSnipy
    @DaSnipy Před 5 lety

    thanks :) .. very clear explanation. Do you have a website ?

  • @user-nm3gw1hm2b
    @user-nm3gw1hm2b Před 5 měsíci

    Thanks a lot sir I really confused about this program but now I understand it well thanks again stay blessed

  • @KavitaNegi05
    @KavitaNegi05 Před 3 lety +2

    Thnku so much sir 😊😊you explanation is too much good 👍

  • @aartipokhrel3821
    @aartipokhrel3821 Před 4 lety

    I love it you teach so well sir🙏🙏😌

  • @sauravrajpanda8605
    @sauravrajpanda8605 Před 3 lety

    Thank you sir for explaining properly.

  • @jonaidshahid9976
    @jonaidshahid9976 Před 4 lety

    Please also make algorithm on second largest

  • @rekildo
    @rekildo Před 5 lety

    Superb👍

  • @beeducated7916
    @beeducated7916 Před 3 lety

    very help full video , keep it up sir

  • @thalabloods2514
    @thalabloods2514 Před rokem

    Thank you ❤️

  • @ramasharma2602
    @ramasharma2602 Před rokem +1

    thankyou so much Sir. I am so confused but after watching your video I got it. thankyou Sir.

  • @abduljayconteh1858
    @abduljayconteh1858 Před rokem +1

    You are very good brother

  • @user-ug1xe1vu8j
    @user-ug1xe1vu8j Před 6 měsíci

    very nice explained. thank you

  • @barshome
    @barshome Před 2 lety

    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

  • @firibuanyass
    @firibuanyass Před 6 lety

    You are the best. I would like videos on EULER , AND HAMILTON theory!!!!

  • @poonamrakheja1774
    @poonamrakheja1774 Před 4 lety

    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.

  • @anshulkaushal2245
    @anshulkaushal2245 Před 2 lety

    Thank you

  • @divyac7626
    @divyac7626 Před 3 lety

    Well explained sir

  • @sujalshah9811
    @sujalshah9811 Před rokem +1

    How to draw the Flowchart of this algorithm?

  • @IslamicWorld-ox2dv
    @IslamicWorld-ox2dv Před rokem

    Thanks sir please make more videos!!

  • @nithishkumar7063
    @nithishkumar7063 Před 4 lety

    Tq sir,, understood easily

  • @divyarawat668
    @divyarawat668 Před 3 lety +1

    Thankyou 😊

  • @rohitmane8803
    @rohitmane8803 Před 11 měsíci +1

    thank you

  • @PrakashKumar-pf5st
    @PrakashKumar-pf5st Před 3 lety +2

    what is meaning of--- o(n) time complexcity, sir.

  • @eswarij3096
    @eswarij3096 Před 2 lety

    Hi pls explain the algorithm to reverse array element using temp variable

  • @homeaccount7841
    @homeaccount7841 Před 4 lety

    How can I also print the location of the max

  • @devanshukumar896
    @devanshukumar896 Před 3 lety

    Here how we can store the maximum element into another variable like x

  • @abduljayconteh1858
    @abduljayconteh1858 Před rokem +1

    Please help me on this question "Finding the duplicate numbers in an array of 10"

  • @manjushreev3153
    @manjushreev3153 Před rokem

    Wow ur teacher is nice

  • @someshmahajan7903
    @someshmahajan7903 Před 4 lety

    Thanks

  • @meetshah4473
    @meetshah4473 Před 6 lety

    Sir plz make the video of c program/algorithm to interchange largest and smallest number in an array using function

  • @fariyabkhan8095
    @fariyabkhan8095 Před rokem

    please upload a video on finding minimum element

  • @ambermaze4760
    @ambermaze4760 Před 4 lety

    Thanks sir from USA

  • @ashureetu4916
    @ashureetu4916 Před 15 dny

    Thnks very useful

  • @DiyanDevaiah-tm8eh
    @DiyanDevaiah-tm8eh Před rokem

    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)

  • @ezequielbecerrilgonzalez6946

    Fan from Guadalajaran, Mexico. How to find the largest number in a matrix?

  • @harikavaleti1950
    @harikavaleti1950 Před 4 lety

    please do a video on kth largest/smallest element in an array...

  • @sokanoo
    @sokanoo Před 9 měsíci

    salamat idol

  • @adityaarrya4791
    @adityaarrya4791 Před 3 lety

    but there is a problem when we choose -ve integers then it will return 0 as the max element

  • @aadityamishra7734
    @aadityamishra7734 Před 9 měsíci

    thanks for explanation sir

  • @jaysahu357
    @jaysahu357 Před 6 lety +1

    sir please make a video on graph

  • @engr.naveedafzal
    @engr.naveedafzal Před 4 lety

    plz share divide and conquer (recursion) method for finding max element

  • @aadilchan5338
    @aadilchan5338 Před 6 lety

    Kindly make video on Graph.

  • @pandurangvadane443
    @pandurangvadane443 Před 6 lety

    Sir i request to u plzzz make 1 video on reversing for loop . How to reverse stack.

    • @MSKmr-jh2hq
      @MSKmr-jh2hq Před rokem

      czcams.com/video/oa1ziyOP63Y/video.html

  • @bushrarauf1672
    @bushrarauf1672 Před 4 lety

    sir, how to write algorithm to find the largest value in array by recursion

  • @sachindubey5999
    @sachindubey5999 Před 4 lety +3

    If each element is

    • @rantlord8373
      @rantlord8373 Před 4 lety

      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 Před 4 lety +1

      use max=array[0] instead

  • @NubianQueenVibe
    @NubianQueenVibe Před rokem

    Thank you Teacher

  • @user-gp6fh6ip2i
    @user-gp6fh6ip2i Před 11 měsíci

    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 Před 2 lety +1

    Make video on array rotation problem

  • @wilfredocagulang6065
    @wilfredocagulang6065 Před 10 měsíci

    thank you sir

  • @renukadhoundiyal3108
    @renukadhoundiyal3108 Před 4 měsíci

    Thanku sir❤

  • @npgamer7202
    @npgamer7202 Před rokem

    Super sir❤

  • @sikandarafridi1014
    @sikandarafridi1014 Před 2 lety

    sir tuse great ho

  • @realnigga6903
    @realnigga6903 Před 4 lety

    I think this solution will not work in negative numbers

  • @Tbm4545
    @Tbm4545 Před 2 měsíci

    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]

  • @Giggle_Popz
    @Giggle_Popz Před 2 lety

    Check if there is only one element in the array

  • @lifestyle3017
    @lifestyle3017 Před 5 měsíci

    😮❤❤

  • @ahmadasifarifeen8218
    @ahmadasifarifeen8218 Před 3 lety

    thanks sir

  • @priyankasargar2540
    @priyankasargar2540 Před 11 měsíci

    Write a program to find the maximum and minimum of an array of 10 elements of user given array
    Can you write it sir?

  • @manjushreev3153
    @manjushreev3153 Před rokem

    Please do pattern program also please.... If u have already dun please share the link

  • @rayberjany7064
    @rayberjany7064 Před rokem

    Hi Sir, why do you max = 0?

  • @iscommendable13
    @iscommendable13 Před rokem

    Please or video daliye simple question iteration ki

  • @MB-gg3ph
    @MB-gg3ph Před rokem

    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???

  • @alluyt2725
    @alluyt2725 Před rokem

    🥰

  • @akshaygole4353
    @akshaygole4353 Před 2 lety

    sir make videos in hindi...it will be very helpfull...and there are more chances of video to reach to every one

    • @dishadisha2553
      @dishadisha2553 Před měsícem

      You think that national language is Hindi,baka come to sense

  • @hollywoodmains2843
    @hollywoodmains2843 Před 2 lety

    Before Monday

  • @riteshmalav2448
    @riteshmalav2448 Před 6 lety

    Beacuse code understand some time not run so provide code link and show last time in vedio code in id

  • @engr.naveedafzal
    @engr.naveedafzal Před 4 lety

    Oxm