Find minimum (Smallest) element in Array

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ก.ย. 2024
  • Write code to find minimum element in an array.

ความคิดเห็น • 81

  • @ektarathour7716
    @ektarathour7716 3 ปีที่แล้ว +12

    Wow! Thank you very much sir for well explanation

  • @JoyEaudia
    @JoyEaudia 10 หลายเดือนก่อน +14

    now I believe "no matter how difficult your problem is, there will be a random guy from India on TH-cam who solved it years ago"

  • @Jangmi-f3l
    @Jangmi-f3l 9 วันที่ผ่านมา

    thank you so much sir you are the best your teaching method is so good its really help me

  • @geiss747
    @geiss747 3 ปีที่แล้ว +1

    Thank you Vivekanand, very helpful !

  • @esharizwan9244
    @esharizwan9244 ปีที่แล้ว +1

    You didn't tell main function. I am very confused.

  • @sagarrathore1067
    @sagarrathore1067 3 ปีที่แล้ว +1

    but what if we want to return the index of that smallest element in this array then?

    • @benardTechBytes
      @benardTechBytes 3 ปีที่แล้ว

      public static int findMinimum2(int[]inputs) {
      int index = 0;//variable to track position of min in the array.
      int min = inputs[0];//assigning min to value at postion 0 in array
      for(int i=1;i

  • @sigzug
    @sigzug 3 ปีที่แล้ว +1

    Thanks! You really helped me out 😄

  • @firibuanyass
    @firibuanyass 6 ปีที่แล้ว

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

  • @rajchhapariya8805
    @rajchhapariya8805 ปีที่แล้ว

    Very nice video sir!

  • @fariyabkhan8095
    @fariyabkhan8095 ปีที่แล้ว

    thank you, clearly undrstood the concept

  • @ashishsinha8893
    @ashishsinha8893 6 ปีที่แล้ว

    sir which book is best for only problems is given
    of programming no theory..

  • @matimbwanaluhala4115
    @matimbwanaluhala4115 ปีที่แล้ว

    Good teaching skills

  • @ahoangdinh3690
    @ahoangdinh3690 4 ปีที่แล้ว

    hey how we solve this problem??? find smallest positive number!
    input: -1,2,-1,4,5,-1
    output: 0 2 5

  • @priyankasargar2540
    @priyankasargar2540 ปีที่แล้ว

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

  • @indrajkumar3553
    @indrajkumar3553 2 ปีที่แล้ว +1

    Well explained

  • @knight4781
    @knight4781 ปีที่แล้ว

    Superb! Thank you so much

  • @sravankumar4750
    @sravankumar4750 6 ปีที่แล้ว

    Superbb keep going sir

  • @r2editx
    @r2editx หลายเดือนก่อน

    Thank you sir ❤

  • @israelshote6971
    @israelshote6971 3 ปีที่แล้ว

    hi good job.
    please i need viddeo on how to return minimum that is not in the array

  • @hiramsonmakala3777
    @hiramsonmakala3777 ปีที่แล้ว

    The introduction to c program

  • @kristjantiido3174
    @kristjantiido3174 4 ปีที่แล้ว

    And that's literally it?? There's no way to do it easier or there are no built-in functions?

  • @RevathiSreeman
    @RevathiSreeman ปีที่แล้ว

    Thank u sir❤❤❤

  • @stillashinobi7489
    @stillashinobi7489 24 วันที่ผ่านมา

    thanks sir

  • @crunchy_asmr2
    @crunchy_asmr2 4 ปีที่แล้ว

    very helpful video

  • @ritikanishad7611
    @ritikanishad7611 3 ปีที่แล้ว

    Thanks u so much sir😊

  • @shashanksinghsisodiya514
    @shashanksinghsisodiya514 4 ปีที่แล้ว +2

    If we swap the elements in ascending order..then the a[0] will be the minimum element of an array....😌😌

    • @DeepakSingh-vh4nm
      @DeepakSingh-vh4nm 4 ปีที่แล้ว

      you need sorting technique to do so. which will be lengthy.

  • @nands4410
    @nands4410 6 ปีที่แล้ว

    int minimum = *min_element(a,a+size);

  • @lasso9739
    @lasso9739 10 หลายเดือนก่อน

    thank uuuuuuuuuuuuuuuuuuuuuuu

  • @paulvaldivia8995
    @paulvaldivia8995 2 ปีที่แล้ว +6

    You explained this better on a board than others with a computer

  • @TheDoooden
    @TheDoooden 4 ปีที่แล้ว +3

    Thank you very much!! Very helpful!

  • @dundappafulari9208
    @dundappafulari9208 2 ปีที่แล้ว +1

    Thanks sir 🤩

  • @RecklessCrayola
    @RecklessCrayola 3 ปีที่แล้ว +2

    Man you have saved my butt XD your video helped me a lot and despite me being from a non english speaking country I have understood you better than i would understand our teachers. Thanks a lot .

  • @surajkumarpandey9069
    @surajkumarpandey9069 5 ปีที่แล้ว +2

    write a program to find the maximum and minimum element in an array by c program esa par video bnao sir

  • @ManojKumar-zr2bh
    @ManojKumar-zr2bh 3 หลายเดือนก่อน

    Ee video dwara fathers day antey status kadhu vallatho okka roju undalani telisindhi ..nxt year i will try ..♥️🫡👏

  • @warning5310
    @warning5310 3 ปีที่แล้ว +1

    sir could you please make videos on these without functions in array in java
    for eg : interchange,reverse,sum,palindromic,pronic and descending and ascending , average of smallest and lrgest numbers

  • @thondamallinagatulasi8459
    @thondamallinagatulasi8459 4 ปีที่แล้ว +1

    i want this program Replacing the each element in an array and find the minimum element in the array.

  • @mustafamajid7986
    @mustafamajid7986 2 ปีที่แล้ว

    how to get the best time in this methode can you explain plz;

  • @g.rajendrakumar4847
    @g.rajendrakumar4847 3 หลายเดือนก่อน

    Nicely Explained.....Thanks

  • @BigStinkyKeg
    @BigStinkyKeg ปีที่แล้ว

    YOYUY ARE A LIFE SAVER THANK YOUOU

  • @k_Olimov
    @k_Olimov 5 หลายเดือนก่อน

    thank you very much

  • @jeniepratiwi3527
    @jeniepratiwi3527 9 หลายเดือนก่อน

    Thankyou, Sir! 😁😆

  • @GalaxyCookies76
    @GalaxyCookies76 4 ปีที่แล้ว +1

    Excellent explanation thanks a lot

  • @ZeeshanAhmed-h8i
    @ZeeshanAhmed-h8i 8 หลายเดือนก่อน

    Urdu ya Hindi ma bol na ke adat kraa parata bht acho ❤

  • @pinsandneedles7248
    @pinsandneedles7248 4 ปีที่แล้ว +1

    you are a legend thank you bro

  • @saikumarg2121
    @saikumarg2121 ปีที่แล้ว

    Good explanation

  • @sandeepk6694
    @sandeepk6694 5 หลายเดือนก่อน

    Nice

  • @jaimeaguilar9537
    @jaimeaguilar9537 ปีที่แล้ว

    Thank you!

  • @sampathb2920
    @sampathb2920 2 ปีที่แล้ว

    wow

  • @NishantRathoreXYZ
    @NishantRathoreXYZ ปีที่แล้ว

    Nice Sir, Aap bohot acha pdhate ho, I'm really satisfied from your lecture...

  • @meruguharesh4027
    @meruguharesh4027 2 ปีที่แล้ว

    nice tq

  • @mrf8795
    @mrf8795 ปีที่แล้ว

    the way you explain is really good to understand how the code is working. thank you so much.

  • @vivekpatil9605
    @vivekpatil9605 8 หลายเดือนก่อน

    very nice explaination bhaiyya, keep growing

  • @Danie.d99
    @Danie.d99 3 ปีที่แล้ว

    I'm from 🇱🇰 . Well explanation. Thank you!

  • @odurojoseph435
    @odurojoseph435 4 ปีที่แล้ว

    i want learn how to write the algorithm for the program

  • @easthastings6919
    @easthastings6919 3 ปีที่แล้ว

    thank you my indian brother from another mother

  • @artwithkanya
    @artwithkanya ปีที่แล้ว

    Thank you sir for such good explanation

  • @floradeliana9533
    @floradeliana9533 2 ปีที่แล้ว

    thank you sir your explanation is standard !!

  • @kithpw5164
    @kithpw5164 ปีที่แล้ว

    Thank you for sharing your knowledge!

  • @AhmadAsifArifeen
    @AhmadAsifArifeen 3 ปีที่แล้ว

    best explanation

  • @kirillsotnikov5886
    @kirillsotnikov5886 3 ปีที่แล้ว

    What to do if i have to find 2 minimum numbers in the array?

  • @yogeshbarvekar2725
    @yogeshbarvekar2725 4 ปีที่แล้ว

    Ty sir

  • @siddharthpatel9281
    @siddharthpatel9281 2 ปีที่แล้ว

    Thanks for the explaination sir

  • @ianchui
    @ianchui 6 ปีที่แล้ว

    will this algorithm work, if the first parameter sent in is null. (if that is even possible) Thanks!

  • @naqeebullahgulshan6844
    @naqeebullahgulshan6844 5 ปีที่แล้ว

    ples Help me in date structure & algorithm

  • @anshumanjenamani8798
    @anshumanjenamani8798 ปีที่แล้ว

    great and simple explanation

  • @siddheshsakpal5798
    @siddheshsakpal5798 4 ปีที่แล้ว

    How to show Median using array

  • @warisafghan4211
    @warisafghan4211 3 ปีที่แล้ว

    Nice explanation sir g

  • @alexisrodriguez7127
    @alexisrodriguez7127 4 ปีที่แล้ว

    gosh im so dumb. I knew my logic was correct but instead of doing min = array[i], i did array[i] = min and thought caused a lot of confusion. Thanks for clearing that up.

  • @rbedmar7116
    @rbedmar7116 4 ปีที่แล้ว

    Excellent. your explanation help a lot

  • @gihangadessalinesfrank348
    @gihangadessalinesfrank348 3 ปีที่แล้ว

    great explanation sir

  • @juraijbinjamal5313
    @juraijbinjamal5313 3 ปีที่แล้ว

    Thankque

  • @charankumar8065
    @charankumar8065 5 ปีที่แล้ว

    excellent