HashMap Implementation in Java | HashMap | Java with DSA

Поділитися
Вставка
  • Опубліковано 11 лис 2024

КОМЕНТАРІ • 374

  • @johnhammond3605
    @johnhammond3605 2 роки тому +114

    So good to see a java video after a long time.....plz complete this series fast.... it's a humble request 🥺

    • @James-Bond-007_
      @James-Bond-007_ 2 роки тому +8

      They will not complete any series mark my words

    • @Highster_parish
      @Highster_parish 2 роки тому +2

      Until u pay?

    • @johnhammond3605
      @johnhammond3605 2 роки тому +2

      @@James-Bond-007_ not too much is remaining for broad understanding of java... Even if they only complete graphs properly it will be enough .....I don't expect them to teach multithreading and DB 🥺

    • @johnhammond3605
      @johnhammond3605 2 роки тому

      @@saurabhsinghdhami1999 in dsa it's mostly graphs .... advanced topics like AVL trees B trees probably won't be covered here.....thn there is file handling, multithreading, lambda expression jdbc etc which are important....but tht won't be covered most likely either..... that's why i am saying if they only do a detailed video on graphs it is enough

    • @BKYADAV-zm7yv
      @BKYADAV-zm7yv Рік тому +1

      Just follow love babar bhaiya he has completed all topics

  • @adisaxena4359
    @adisaxena4359 2 роки тому +160

    Hi Di............. due to your java course series and DSA series............GOT PLACED AT 7 LPA!!!!!!!!!!! Thank you for your help

    • @ApnaCollegeOfficial
      @ApnaCollegeOfficial  2 роки тому +38

      Congratulations Adi!

    • @adisaxena4359
      @adisaxena4359 2 роки тому +11

      @@ApnaCollegeOfficial Thank you!

    • @RohitVerma003
      @RohitVerma003 Рік тому +5

      Hi Adi.. Can u share some tips

    • @Saiyan412
      @Saiyan412 Рік тому +2

      @@RohitVerma003 that's his secret,i don't think he will share 🤣

    • @mohittiwari1636
      @mohittiwari1636 Рік тому +3

      ​@@adisaxena4359 congratulations bhaiya🎉🎉

  • @vaibhavwani2094
    @vaibhavwani2094 6 місяців тому +30

    NOTE:
    In older versions of Java (prior to Java 8), HashMap was implemented using an array of linked lists to handle collisions. Each element in the array represents a bucket, and collisions were resolved by chaining entries with the same hash code into linked lists.
    However, starting from Java 8, HashMap implementation has been enhanced to use a combination of linked lists and balanced binary trees for better performance in scenarios where hash collisions occur frequently. This enhancement is known as "tree bins" or "tree nodes."

  • @HumanityisMyGoal
    @HumanityisMyGoal 2 роки тому +6

    thank you so much didi aapki vajah se me java programming ki shuruaat kar paya ...basic knowledge ke liye thank u

  • @suzanaangboo2448
    @suzanaangboo2448 Рік тому +20

    Some Problems: 40:43
    In rehash(), you have not update the value of N and n. N will be double because the size of bucket increases and n will be 0 because there will no element in the bucket at first. So, due to this reason the rehash() method is once called then it will run each time put() is called.

    • @officialminalverma3908
      @officialminalverma3908 Рік тому +1

      please tell in which line of the hashing function we have update N? ?

    • @anuragjaiswal5360
      @anuragjaiswal5360 Рік тому

      Nice, but we do not need to do anything with the n bcz the no of nodes will remain same as it is just get copying to newly created array/buckets.

    • @shubhangipatil4830
      @shubhangipatil4830 4 дні тому

      Yes In rehash method we have to reinitialize node size as well bucket size as we are completely create new array of linkelist by copying old one.

  • @forester1
    @forester1 2 роки тому +5

    This video bring ideas in my mind . Thank you

  • @jithinjjj
    @jithinjjj 2 роки тому +4

    Thank you for coming back here🙏.. please solve more DSA questions from DATASHEET

  • @abhishekjaiswal8722
    @abhishekjaiswal8722 2 роки тому +14

    After long wait finally HashMap video in java series 🥳

  • @bharathtricks
    @bharathtricks 2 роки тому +4

    Plzz explain clear from beginner to advanced with next level explanation

  • @AmritSingh-du7pq
    @AmritSingh-du7pq 2 роки тому +6

    Thank you Di for this video I have a lot of confusion in Hashmap but now my all doubts have cleared. Once again thank you.

  • @plugincoders9282
    @plugincoders9282 2 роки тому +4

    Thank you very much didi
    Me kab se wait kar raha tha hashmap ka
    🙏🙏

  • @ankitashah4006
    @ankitashah4006 8 місяців тому +1

    Really very good video and very useful information on HashMap implementation

  • @arijitganguly8110
    @arijitganguly8110 2 роки тому +5

    Thanks apna college ❤for a great lesson

  • @krishnanshumishra4629
    @krishnanshumishra4629 Рік тому +5

    @ApnaCollege team
    Some minor changes are required in the rehash() method:
    We need to update the value of bucket size (N) to (N*2) and also reset the number of nodes(n) to 0 while initializing the new bucket in the rehash method.
    this.N = N*2;
    this.n = 0;
    Hope this helps!
    The explanation provided was thorough and insightful.

    • @udaykiran-zb2cd
      @udaykiran-zb2cd Рік тому

      didn't understand,... where?

    • @Yash-gy3qx
      @Yash-gy3qx Рік тому

      @@udaykiran-zb2cd in rehashing method

    • @udaykiran-zb2cd
      @udaykiran-zb2cd Рік тому

      @@Yash-gy3qx yes I got it now.. so update N or else it will say the same.. and update n to 0 or else put will add to previous value..

  • @stith_pragya
    @stith_pragya 9 місяців тому +1

    Thank You So Much for this wonderful video........🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻

  • @suravipanigrahi8507
    @suravipanigrahi8507 Рік тому +1

    Thank you di completed and understood so perfectly .

  • @chandershekhar9251
    @chandershekhar9251 2 роки тому +4

    thanks for the hashmap tut Ma'am

  • @divyasinghr4530
    @divyasinghr4530 2 роки тому +5

    I request Apna college to please continue the web development course! please!
    many of us are still waiting for that!

  • @itssmartkk7414
    @itssmartkk7414 2 роки тому +11

    You are the best shradha didi ☺️❤️💫

  • @PradeepKumarIIITD
    @PradeepKumarIIITD Рік тому +3

    presentation and the content is of best quality :)

  • @princybhandari2553
    @princybhandari2553 2 роки тому +4

    Thank u so much diii ❤️ for this video.... amezing video 😍

  • @TalhaKhan-ox5yr
    @TalhaKhan-ox5yr 2 роки тому

    Madam g Apki har video pe smile krte huwe nazar ate ho Allah apko aisa he khush rakhy ❤

  • @kartikgupta3762
    @kartikgupta3762 Рік тому +1

    waiting for this video from a very long time .. thank you very much

  • @meshvpatel4017
    @meshvpatel4017 2 роки тому +3

    Ma'm we are eagerly waiting for more videos for this playlist

  • @AishwaryDandale
    @AishwaryDandale 9 місяців тому +4

    should we add this line to the rehash function??
    this.N = 2*N;

  • @RitikKumar-bk6pj
    @RitikKumar-bk6pj 2 роки тому +2

    Mam it's a nice explanation please make a video on a trie data structures

  • @MuhammadIqbal-eg2dr
    @MuhammadIqbal-eg2dr 2 роки тому +2

    Thanks you Apna College❣️❣️

  • @respect_1197
    @respect_1197 2 роки тому

    Thank god apko yaad aa hi gya ki video bhi banani h

  • @rajdon7138
    @rajdon7138 2 роки тому +3

    I don't how to solve coding problem in exam what to-do.... Plz tell me easy process. Now i am in 12 class .
    Really I am your big fan sister

  • @shaikhaadil2060
    @shaikhaadil2060 2 роки тому +4

    Salute to didi ,She is giving her 100% to the students! A BIG thanks to uh didi:)

  • @VanditBuch
    @VanditBuch 3 місяці тому +5

    Easy concept made too complex....We can't come at your level of understanding and hence we are not able to understand the concept

  • @vaibhavbagde3703
    @vaibhavbagde3703 2 роки тому +5

    Ma'am you are teaching very well but taking too mach for creating video please. 🥺 Thoda jaldi katam kar dijiye java series lekin sub topic cover karna ma'am

  • @robinsonlimbu2956
    @robinsonlimbu2956 Рік тому

    This video deserves millions of likes I am quite shock why only 3 k

  • @akshatvashishtha4626
    @akshatvashishtha4626 Рік тому +10

    Hey Shraddha, I must say you are really delivering the real knowledge for which you have spent numerous of hours(24*7*365). Thanks for the optimized content😊..
    If possible can you create playlist for data structures of course it can be paid, the thing is that everyone needs to know about data structure but the optimized content is not available anywhere.
    Once again thanks for the knowledge, keep your parents pride of you. Good luck for future milestones...

  • @vijayanks1714
    @vijayanks1714 2 роки тому +3

    Please do some video in eng or add subtitles it help more students

  • @YashanshDubey8
    @YashanshDubey8 2 роки тому +11

    Sir, I know you are busy in ongoing platform apnikaksha ,It is requested to you please post more lecture of this series as this is the base platform , and majority of people watching including me.

  • @mathematicspathshala11-12
    @mathematicspathshala11-12 2 роки тому +3

    All daa concept in depth

  • @Shamsher_Devp
    @Shamsher_Devp 2 роки тому +3

    Hi mam, am BSCS student , mam I respect you , and I appreciate you for your great effort , actually I want to say : can you please upload a complete course with best practice project at Cloud computing . thank!😊, May good keep you happy always .

  • @hustlewithhamza8443
    @hustlewithhamza8443 2 роки тому +3

    DIDI is BACK 🌟🌟🌟

  • @aanchaltyagi9457
    @aanchaltyagi9457 Рік тому +1

    Thank u so much Ma'am for this knowledge......😊

  • @chessmaster5377
    @chessmaster5377 2 роки тому +4

    Thank you for the video 🥰
    If video came last week might be able to clear my last round of MasterCard Interview🥲. Interviewer wants more details on HashMap . I am searching for this explanation but I am unable to find , if found unable to understood. Thank you once again for clearing confusion.

  • @MohammadAli-ne7cv
    @MohammadAli-ne7cv 6 місяців тому

    Ahaa kya video hai zabardast!!

  • @Nm.clasher
    @Nm.clasher 2 роки тому +1

    my favourite dede love from nepal....🥰🥰

  • @jayshree5625
    @jayshree5625 2 роки тому +4

    Thnku dii💝

  • @cricketclub1617
    @cricketclub1617 2 роки тому +3

    Please upload all remaining videos as fast as possible. Please please 🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏

    • @cricketclub1617
      @cricketclub1617 2 роки тому

      @@saurabhsinghdhami1999 graph ,dp , segment tree

  • @badalsahani112
    @badalsahani112 2 роки тому +12

    Thank you shradha didi for this video.
    Bahot jyada wait kr liya tha iska

    • @badalsahani112
      @badalsahani112 2 роки тому +1

      Ye kaisa sawal h bro

    • @badalsahani112
      @badalsahani112 2 роки тому

      Tum konsi class me ho

    • @satyakijaan
      @satyakijaan 2 роки тому

      Batooo bhai

    • @badalsahani112
      @badalsahani112 2 роки тому

      2nd year Computer Science
      Waise to aata h ye mujhe pr thoda revision chahiye tha😅😅

  • @sunielsharma8142
    @sunielsharma8142 2 роки тому +3

    Coding queen 👑 Shraddha Didi ❤️

  • @ashishdaspersonal539
    @ashishdaspersonal539 2 роки тому +1

    Yes didi please complete this course we have our placement Going on

  • @nitin4225
    @nitin4225 2 роки тому +3

    Thank you didi 😇

  • @harshvarshney9979
    @harshvarshney9979 2 роки тому +3

    Di after many time we forget the things so please upload lecture early as possible please

  • @navneet1167
    @navneet1167 2 роки тому +2

    keep uploading video regularly plzzz

  • @AIInsightsGlobal
    @AIInsightsGlobal 2 роки тому +2

    Bounce Back! ❤️

  • @HumanityisMyGoal
    @HumanityisMyGoal 2 роки тому +4

    mam it's a humble request to you please make tutorial video on css and java script also of minimum 3 hour... it will be beneficial for beginners like us.

    • @ASIFAlI-lq4rd
      @ASIFAlI-lq4rd Рік тому

      alreeady made...go through in this channel under web development

  • @asadullahallmamun3192
    @asadullahallmamun3192 2 роки тому +2

    Make a video of graphs ...and upload video regularly...we are waiting for your video

  • @aniketsadal
    @aniketsadal 2 роки тому +7

    CODING QUEEN= SHRADDHA DI
    Agree People hit like

  • @kunalchandrakar2917
    @kunalchandrakar2917 2 роки тому +3

    didi ap apna channel kholo na kab tak asa karoge
    u are the best

    • @AnkitKumar-nx2tq
      @AnkitKumar-nx2tq 2 роки тому

      she is co-founder of apna college dude!

    • @anushkamondal9456
      @anushkamondal9456 2 роки тому

      Yes please apna channel kholo didi 🙏🙏🙏🙏🙏🙏🙏🙏🙏❤️

    • @AnkitKumar-nx2tq
      @AnkitKumar-nx2tq 2 роки тому

      @@dhritimanchanda1183 what do you mean?

  • @shivrajmulik1902
    @shivrajmulik1902 2 роки тому +3

    Hello Didi,
    It’s my humble request for you to please upload a detailed python course from beginner ti advanced please di I hope you will
    Thank you 😊

  • @anupamagrawal8876
    @anupamagrawal8876 2 роки тому +5

    Didi please do a video on aeronautical & aerospace engineering
    waiting eagerly

  • @munfeesfatima4508
    @munfeesfatima4508 2 роки тому +2

    Plz complete this series...

  • @virendrakumar3457
    @virendrakumar3457 2 роки тому +1

    Aapka koi persanal application hai ya fir Java ki total class youtub per hi
    Available hai
    Aapke you tube channel par(apna college)par tatal classes hai Java language ki
    Please reply mam/sir

  • @royalhinduvlog10
    @royalhinduvlog10 2 роки тому +2

    So sweets video

  • @ankurkumar8989
    @ankurkumar8989 2 роки тому +2

    Amazing mam

  • @vaibhav9693
    @vaibhav9693 Рік тому

    very nice and optimize content , really amazing

  • @shreyash1533
    @shreyash1533 2 роки тому +2

    plz complete full dsa using java

  • @maheshnaikal9586
    @maheshnaikal9586 2 роки тому +5

    Anyone from Maharashtra who known as मराठी 🚩

  • @jetixstar9070
    @jetixstar9070 2 роки тому +1

    I follow you from 9 class🤗🤗

  • @zr0724
    @zr0724 2 роки тому +2

    please make courses on algorithms and data structures in java. I really need those courses

  • @shubhamkumar-yx8wk
    @shubhamkumar-yx8wk 2 роки тому

    hello diiii i am totally happy to study with you so plzz i requested i want a full video of leetcode

  • @paraskumar6142
    @paraskumar6142 2 роки тому +1

    Then till keep learning and keep exploring 🙂

  • @ankurkumar8989
    @ankurkumar8989 2 роки тому +2

    Amazing

  • @miliaurora1038
    @miliaurora1038 2 роки тому +5

    C++ implementation kaise hota hai?

  • @vishwajeetsawant6465
    @vishwajeetsawant6465 2 роки тому +3

    Plzz make a more videos on coding like python ,php , javascript, advanced Java.

  • @bhavinbabariya8306
    @bhavinbabariya8306 Рік тому

    Just specify the Node type while attaching LL with buckets. it will fix the warnings.

    • @ashigour4331
      @ashigour4331 Рік тому

      hey, i need your help
      private int searchInLL(K key, int bi) {
      LinkedList ll = buckets[bi];
      for (int i = 0; i < ll.size(); i++) {
      if (ll.get(i).key == key) {
      return i;
      }
      }
      return -1;
      }
      i dont understand this part. if we are searching in a linked list, how are we directly accessing its index? and what exactly does get method imply? could you explain?

  • @kalpeshgabu4092
    @kalpeshgabu4092 2 роки тому +2

    Mam Please 1 Project with frontity with Wordpress.

  • @anuragchatterjee82
    @anuragchatterjee82 2 роки тому +8

    Didi Java pe full course banayenge na . playlist wise.

    • @clashlegendOfficial
      @clashlegendOfficial 2 роки тому

      Bhai one shote vedio already hai
      Chapter wise bhi hai check playlist

  • @ajinzrathod
    @ajinzrathod 8 місяців тому

    As you said, rehashing changes and increases the size of LL when we add elements which exceeds the threshold. Does it also shrink the LL decrease the value when we pop the value?

  • @khushansharora3383
    @khushansharora3383 8 місяців тому

    34:00 summary of put()

  • @arbabo-vy9rh
    @arbabo-vy9rh 4 місяці тому +1

    mam ap lyeh likhne ke liye konsi application use kar rahay hain

  • @engineeringlife4567
    @engineeringlife4567 2 роки тому +5

    Ma'am Android development ka bhi basic to advance koi course (paid or free) nikalo

  • @bhavatearya
    @bhavatearya 2 роки тому +1

    Thank you

  • @jetixstar9070
    @jetixstar9070 2 роки тому +2

    Love u di😍😍😍

  • @krisansen603
    @krisansen603 2 роки тому +1

    Thank you mam. 🥰🥰💞🙏

  • @chiranjitmandal5480
    @chiranjitmandal5480 2 роки тому +1

    Didi Course Complete kar do jaldi ..☺️

  • @saurabhpatil6158
    @saurabhpatil6158 2 роки тому +2

    Nice 👍🙂

  • @sagarsingh-rn1qf
    @sagarsingh-rn1qf 2 роки тому +5

    Data structure ka Playlists chaiye

  • @shreyanshshikhar727
    @shreyanshshikhar727 2 роки тому +2

    I have take alpha course. What is difference between alpha and UA-cam videos

    • @coderIvam
      @coderIvam 2 роки тому

      hey friend, I have also taken the alpha 2.0 course and also saw some of the youtube videos... and in opinion to me, both are same but the measure difference is that in alpha we are having a guidance for a particular path.. in youtube we always likely to mess around in different fields.

  • @CrystalKrack
    @CrystalKrack 2 роки тому +2

    Didi python sikh ne ke liye kinsa best hai vs code ya pycharm
    Aur agar yaha pe python sikha hai toh please tell me konsa best hai

  • @Barrett1180
    @Barrett1180 2 роки тому +7

    Hey Teacher, as a first year Btech student, which books should I go for

    • @PradeepKumarIIITD
      @PradeepKumarIIITD Рік тому +2

      For Java you can go with : Core Java by Rashmi Kanta Das
      For DSA: You can Start with DSA made Easy by Narshimha Karumanchi , Best of luck :)

  • @virendrakumar3457
    @virendrakumar3457 2 роки тому

    I joined your telegram channel

  • @prakhargupta60
    @prakhargupta60 4 місяці тому

    Didi rehash function me N kee value update bhi krni padegi i.e. N*=2

  • @hajgudeprasad4440
    @hajgudeprasad4440 2 роки тому +2

    Mam python ka bhi course lijiye na

  • @vaibhavparihar4432
    @vaibhavparihar4432 2 роки тому +1

    Which topics of Java are considered in both Core and Advanced Java ??

  • @nitesh9296
    @nitesh9296 2 роки тому +3

    Di please node.js bata do kahan se seekhun🙏🏽

  • @mathematicspathshala11-12
    @mathematicspathshala11-12 2 роки тому +3

    Didi please complete the whole syllabus 🙏🏽🙏🏽🙏🏽🙏🏽🙏🏽🙏🏽🙏🏽🙏🏽🙏🏽🙏🏽

  • @sno2815
    @sno2815 Рік тому

    pep coding is a legend

  • @sandeepdeo1073
    @sandeepdeo1073 2 роки тому

    Please di upload all java video as soon as possible.

  • @sandy4799
    @sandy4799 Рік тому

    Awesome 👌

  • @sasankbavirisetti4297
    @sasankbavirisetti4297 2 роки тому +6

    C++ vs Java which is best for high package

    • @abhiop1064
      @abhiop1064 2 роки тому +4

      it depends but i recommend you to go for java because you can do DSA as well as Development

  • @Tech_G331
    @Tech_G331 2 роки тому

    Important - mam maine C C++ java kiya hai.. to sirf isspar job milta h kya.

  • @esntlaman3433
    @esntlaman3433 2 роки тому +9

    I think there is one minor error in the rehash function, we should also update the value of N (bucketsize) in the rehash function as well

    • @ApnaCollegeOfficial
      @ApnaCollegeOfficial  2 роки тому +8

      Yes

    • @munfeesfatima4508
      @munfeesfatima4508 2 роки тому +2

      @@ApnaCollegeOfficial pls complete the whole series

    • @Coding-Just
      @Coding-Just Рік тому +1

      Yes bro you have eagle eyes 👁️👁️👁️ and concentrate on lectures like paid course👍👍👍