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."
@kratichopra70974 ай бұрын
,
@suzanaangboo24482 жыл бұрын
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 Жыл бұрын
please tell in which line of the hashing function we have update N? ?
@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Ай бұрын
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.
@atulgite90721 күн бұрын
Actually both of them need to initialise again because when we're calling put again it will increase the size of n(number of records) from the value which needs rehashing. So rehash loops will go in unbreakable loop
@adisaxena43592 жыл бұрын
Hi Di............. due to your java course series and DSA series............GOT PLACED AT 7 LPA!!!!!!!!!!! Thank you for your help
@ApnaCollegeOfficial2 жыл бұрын
Congratulations Adi!
@adisaxena43592 жыл бұрын
@@ApnaCollegeOfficial Thank you!
@RohitVerma003 Жыл бұрын
Hi Adi.. Can u share some tips
@Saiyan412 Жыл бұрын
@@RohitVerma003 that's his secret,i don't think he will share 🤣
@mohittiwari1636 Жыл бұрын
@@adisaxena4359 congratulations bhaiya🎉🎉
@johnhammond36052 жыл бұрын
So good to see a java video after a long time.....plz complete this series fast.... it's a humble request 🥺
@James-Bond-007_2 жыл бұрын
They will not complete any series mark my words
@Highster_parish2 жыл бұрын
Until u pay?
@johnhammond36052 жыл бұрын
@@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 🥺
@johnhammond36052 жыл бұрын
@@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-zm7yv2 жыл бұрын
Just follow love babar bhaiya he has completed all topics
@HumanityisMyGoal2 жыл бұрын
thank you so much didi aapki vajah se me java programming ki shuruaat kar paya ...basic knowledge ke liye thank u
@ankitashah40069 ай бұрын
Really very good video and very useful information on HashMap implementation
@forester12 жыл бұрын
This video bring ideas in my mind . Thank you
@princybhandari25532 жыл бұрын
Thank u so much diii ❤️ for this video.... amezing video 😍
@stith_pragya11 ай бұрын
Thank You So Much for this wonderful video........🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻
@jithinjjj2 жыл бұрын
Thank you for coming back here🙏.. please solve more DSA questions from DATASHEET
@plugincoders92822 жыл бұрын
Thank you very much didi Me kab se wait kar raha tha hashmap ka 🙏🙏
@arijitganguly81102 жыл бұрын
Thanks apna college ❤for a great lesson
@AmritSingh-du7pq2 жыл бұрын
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.
@MuhammadIqbal-eg2dr2 жыл бұрын
Thanks you Apna College❣️❣️
@itssmartkk74142 жыл бұрын
You are the best shradha didi ☺️❤️💫
@PradeepKumarIIITD2 жыл бұрын
presentation and the content is of best quality :)
@suravipanigrahi8507 Жыл бұрын
Thank you di completed and understood so perfectly .
@sbb61325 күн бұрын
key - hashCode() -> hashfunctioin give random bucket index value, OR it give bucket index value which have minimum node.
@kartikgupta37622 жыл бұрын
waiting for this video from a very long time .. thank you very much
@TalhaKhan-ox5yr2 жыл бұрын
Madam g Apki har video pe smile krte huwe nazar ate ho Allah apko aisa he khush rakhy ❤
@abhishekjaiswal87222 жыл бұрын
After long wait finally HashMap video in java series 🥳
@bharathtricks2 жыл бұрын
Plzz explain clear from beginner to advanced with next level explanation
@Slayer-07010 ай бұрын
should we add this line to the rehash function?? this.N = 2*N;
@chandershekhar92512 жыл бұрын
thanks for the hashmap tut Ma'am
@meshvpatel40172 жыл бұрын
Ma'm we are eagerly waiting for more videos for this playlist
@RitikKumar-bk6pj2 жыл бұрын
Mam it's a nice explanation please make a video on a trie data structures
@rajdon71382 жыл бұрын
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
@divyasinghr45302 жыл бұрын
I request Apna college to please continue the web development course! please! many of us are still waiting for that!
@Nm.clasher2 жыл бұрын
my favourite dede love from nepal....🥰🥰
@sunielsharma81422 жыл бұрын
Coding queen 👑 Shraddha Didi ❤️
@krishnanshumishra4629 Жыл бұрын
@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 Жыл бұрын
didn't understand,... where?
@Yash-gy3qx Жыл бұрын
@@udaykiran-zb2cd in rehashing method
@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..
@DilipBhuralalParihar24 күн бұрын
Thank you so much for this explanation..
@aanchaltyagi9457 Жыл бұрын
Thank u so much Ma'am for this knowledge......😊
@vaibhavbagde37032 жыл бұрын
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
@ashishdaspersonal5392 жыл бұрын
Yes didi please complete this course we have our placement Going on
@VanditBuch4 ай бұрын
Easy concept made too complex....We can't come at your level of understanding and hence we are not able to understand the concept
@jayshree56252 жыл бұрын
Thnku dii💝
@hustlewithhamza84432 жыл бұрын
DIDI is BACK 🌟🌟🌟
@respect_11972 жыл бұрын
Thank god apko yaad aa hi gya ki video bhi banani h
@aniketsadal2 жыл бұрын
CODING QUEEN= SHRADDHA DI Agree People hit like
@vijayanks17142 жыл бұрын
Please do some video in eng or add subtitles it help more students
@anupamagrawal88762 жыл бұрын
Didi please do a video on aeronautical & aerospace engineering waiting eagerly
@nitin42252 жыл бұрын
Thank you didi 😇
@cricketclub16172 жыл бұрын
Please upload all remaining videos as fast as possible. Please please 🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏
@cricketclub16172 жыл бұрын
@@saurabhsinghdhami1999 graph ,dp , segment tree
@shaikhaadil20602 жыл бұрын
Salute to didi ,She is giving her 100% to the students! A BIG thanks to uh didi:)
@anuragchatterjee822 жыл бұрын
Didi Java pe full course banayenge na . playlist wise.
@clashlegendOfficial2 жыл бұрын
Bhai one shote vedio already hai Chapter wise bhi hai check playlist
@MohammadAli-ne7cv8 ай бұрын
Ahaa kya video hai zabardast!!
@robinsonlimbu2956 Жыл бұрын
This video deserves millions of likes I am quite shock why only 3 k
@shubhamkumar-yx8wk2 жыл бұрын
hello diiii i am totally happy to study with you so plzz i requested i want a full video of leetcode
@AIInsightsGlobal2 жыл бұрын
Bounce Back! ❤️
@mathematicspathshala11-122 жыл бұрын
All daa concept in depth
@harshvarshney99792 жыл бұрын
Di after many time we forget the things so please upload lecture early as possible please
@shreyash15332 жыл бұрын
plz complete full dsa using java
@akshatvashishtha46262 жыл бұрын
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...
@kalpeshgabu40922 жыл бұрын
Mam Please 1 Project with frontity with Wordpress.
@navneet11672 жыл бұрын
keep uploading video regularly plzzz
@paraskumar61422 жыл бұрын
Then till keep learning and keep exploring 🙂
@vaibhav9693 Жыл бұрын
very nice and optimize content , really amazing
@chessmaster53772 жыл бұрын
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.
@asadullahallmamun31922 жыл бұрын
Make a video of graphs ...and upload video regularly...we are waiting for your video
@kunalchandrakar29172 жыл бұрын
didi ap apna channel kholo na kab tak asa karoge u are the best
@AnkitKumar-nx2tq2 жыл бұрын
she is co-founder of apna college dude!
@anushkamondal94562 жыл бұрын
Yes please apna channel kholo didi 🙏🙏🙏🙏🙏🙏🙏🙏🙏❤️
@AnkitKumar-nx2tq2 жыл бұрын
@@dhritimanchanda1183 what do you mean?
@HumanityisMyGoal2 жыл бұрын
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 Жыл бұрын
alreeady made...go through in this channel under web development
@munfeesfatima45082 жыл бұрын
Plz complete this series...
@badalsahani1122 жыл бұрын
Thank you shradha didi for this video. Bahot jyada wait kr liya tha iska
@badalsahani1122 жыл бұрын
Ye kaisa sawal h bro
@badalsahani1122 жыл бұрын
Tum konsi class me ho
@satyakijaan2 жыл бұрын
Batooo bhai
@badalsahani1122 жыл бұрын
2nd year Computer Science Waise to aata h ye mujhe pr thoda revision chahiye tha😅😅
@bhavinbabariya8306 Жыл бұрын
Just specify the Node type while attaching LL with buckets. it will fix the warnings.
@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?
@khushansharora33839 ай бұрын
34:00 summary of put()
@virendrakumar34572 жыл бұрын
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
@maheshnaikal95862 жыл бұрын
Anyone from Maharashtra who known as मराठी 🚩
@Tusharvlogs7772 жыл бұрын
Hii you do such a great work by giving free qualitative coding education 🤎🤎🥵🥵❤️❤️
@Barrett11802 жыл бұрын
Hey Teacher, as a first year Btech student, which books should I go for
@PradeepKumarIIITD2 жыл бұрын
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 :)
@YashanshDubey82 жыл бұрын
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.
@jetixstar90702 жыл бұрын
I follow you from 9 class🤗🤗
@shreyajain50586 ай бұрын
In func rehash we must update this.N=N*2;
@zr07242 жыл бұрын
please make courses on algorithms and data structures in java. I really need those courses
@engineeringlife45672 жыл бұрын
Ma'am Android development ka bhi basic to advance koi course (paid or free) nikalo
@hajgudeprasad44402 жыл бұрын
Mam python ka bhi course lijiye na
@BrijeshPalUP13672 жыл бұрын
Ma'am javascript ka new बैच ले के आए
@ajinzrathod9 ай бұрын
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?
@shivrajmulik19022 жыл бұрын
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 😊
@shreyanshshikhar7272 жыл бұрын
I have take alpha course. What is difference between alpha and KZbin videos
@coderIvam2 жыл бұрын
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.
@miliaurora10382 жыл бұрын
C++ implementation kaise hota hai?
@arbabo-vy9rh6 ай бұрын
mam ap lyeh likhne ke liye konsi application use kar rahay hain
@mathematicspathshala11-122 жыл бұрын
Didi please complete the whole syllabus 🙏🏽🙏🏽🙏🏽🙏🏽🙏🏽🙏🏽🙏🏽🙏🏽🙏🏽🙏🏽
@harshaprakash43202 жыл бұрын
Bsc computer science and cognitive system+ mca or b tech csbs suggestion me which one to choose please
@rjesh20622 жыл бұрын
KZbin
@krisansen6032 жыл бұрын
Thank you mam. 🥰🥰💞🙏
@Gargee_Paul2 жыл бұрын
Mere vs code me @media type karne se na blue colour ka hoja ta he but wo to purple colour type hona chahiye na kuch solution do na di plz, me media queries use nehi kar parahihu eski wajah se bohat try kiya.
@Shamsher_Devp2 жыл бұрын
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 .
@ankurkumar89892 жыл бұрын
Amazing mam
@jetixstar90702 жыл бұрын
Love u di😍😍😍
@ravisain91672 жыл бұрын
maam please make a video on linux
@praveenbhurrak69242 жыл бұрын
Hello I want to make a career in full stack developer I don't have have degree only 10 passout in 2003 nd right now working with in bpo tech support company last 8 years so can you assist which course I can do or not or any other thing like Salesforce admin or coder which I need to choose pls help me
@Yash-gy3qx Жыл бұрын
In rehash we are doing new LinkedList[N*2] better we should update the N value and then do i.e. N= N*2; new LinkedList[N]; anyway we should have to update the value of N for further rehashing
@sagarsingh-rn1qf2 жыл бұрын
Data structure ka Playlists chaiye
@chiranjitmandal54802 жыл бұрын
Didi Course Complete kar do jaldi ..☺️
@Legendgaming-Delaram2 жыл бұрын
didi please creat videos full implementation of array list and linked list did not use created java link list and array list library
@esntlaman34332 жыл бұрын
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
@ApnaCollegeOfficial2 жыл бұрын
Yes
@munfeesfatima45082 жыл бұрын
@@ApnaCollegeOfficial pls complete the whole series
@Coding-Just Жыл бұрын
Yes bro you have eagle eyes 👁️👁️👁️ and concentrate on lectures like paid course👍👍👍
@Krackxis782 жыл бұрын
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
@IjazAhmad-wv9qx4 ай бұрын
pycharm is good for python code
@fambruhgamingshorts2 жыл бұрын
❤️
@PrinceSingh-ll7jo2 жыл бұрын
Mam maine new PC main jaisa apne kaha waise kiya C language coding ke liye but mera first program Hello world hee nhi run ho rha hai aisa kyu pls help
@coderIvam2 жыл бұрын
Have you successfully installed a compiler ( mingw ) just after the vs code( may be other code editor)
@PrinceSingh-ll7jo2 жыл бұрын
@@coderIvam yes everything as shown in the video
@coderIvam2 жыл бұрын
Have you set the environment??
@coderIvam2 жыл бұрын
@@PrinceSingh-ll7jo write gcc in the terminal if error like fatal not fetch like that appears it means compiler is not installed or set properly...just go to c disk delete mingw file completely and then again install compiler (mingw)