How To Reverse An Array In JAVA | FREE DSA Course in JAVA | Lecture 63

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ม.ค. 2023
  • We are covering simple java operations on arrays.
    In this program, we will learn how to reverse an array.
    For example, we have an array, 1, 5, 6, 79, 80, 60, 23 then we must reverse the array in the sense that it now becomes 23, 60, 80, 79, 6, 5, 1
    We can solve this program using loops by placing one pointer at the start of the array and another pointer at the end of the array.
    All we need to do now is interchange their positions and increase the initial pointer by one and decrease the last pointer by one.
    Let's check out how we can write a java program to reverse an array.
    For more information, fill out this form: forms.gle/8eiUmM92Fx563Aen9
    or call us at 8884881203
    Facebook: / thetapacademy
    Instagram: / tapacademy_online
    Linkedin: / 73820805
    Website: www.thetapacademy.com​
    #java #array #arrayjava #dsa #dsacourse #placement #job

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

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

    thank you for this simplest explanation ever :)

  • @myosith4795
    @myosith4795 12 วันที่ผ่านมา

    Thank you this question is solved

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

    just looking like wow
    superb sir

  • @user-ny3cf5si4i
    @user-ny3cf5si4i 2 หลายเดือนก่อน

    the best explanation i have ever seen

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

    amazing explanation sir....!
    this is the your first video that I'm watching... and I love it.

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

    this is really easy to understand thank you!

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

    int j = last element of array a[i] solved my problem , thanks a lot sir

  • @mohdalmashusain1777
    @mohdalmashusain1777 ปีที่แล้ว +15

    kl rahul's 4th cousin

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

      🤣🤣

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

    Sir You're Awesome.

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

    Great video sir. This is very good video and please make on video on DSA topic as well.

  • @Entertainment.Tube0
    @Entertainment.Tube0 ปีที่แล้ว +1

    Awesome..... simple explanation..... 💯💯

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

    Simple super sir ❤️

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

    Sir can you cover dynamic programming and make a playlist ?

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

    nice explanation

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

    what was the time & space complexity of this code ????

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

    we can do the same thing by using for(int i=a.length-1;i>=0;i--)
    Sysout(a[i]+" ");
    Why do wee need to create aethod and them calling using while??

  • @Uni-explore108
    @Uni-explore108 7 หลายเดือนก่อน

    Thank you so much

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

    thanks

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

    super sir

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

    So easy

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

    i did not got output

  • @manishachanda8089
    @manishachanda8089 27 วันที่ผ่านมา +1

    We don't need to swap we can also do these by:
    for(i=A.length; i>=0;i--){
    sout(A[i]);
    It will take just 10 lines and also save our time.

    • @aryasharma6878
      @aryasharma6878 15 วันที่ผ่านมา

      you can't do that in a function where you need to return a reversed array.

  • @0-100Dev
    @0-100Dev ปีที่แล้ว

    Why is easier questions being posted today ?

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

      These are some basic operations that students must know. Will come up more advanced questions as well.

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

    ❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤

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

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

    why don't you teach on board that will be easy for us to understand and i personally like more beacuse it's to irritating when u tell the concept on virtual mode. I hope u will consider my request

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

    this code is appearing [I@5fdef03a an not get output