HashMap Implementation in Java | HashMap | Java with DSA

  Рет қаралды 305,333

Apna College

Apna College

Күн бұрын

Пікірлер: 377
@vaibhavwani2094
@vaibhavwani2094 7 ай бұрын
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."
@kratichopra7097
@kratichopra7097 4 ай бұрын
,
@suzanaangboo2448
@suzanaangboo2448 2 жыл бұрын
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 Жыл бұрын
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 Ай бұрын
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.
@atulgite907
@atulgite907 21 күн бұрын
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
@adisaxena4359
@adisaxena4359 2 жыл бұрын
Hi Di............. due to your java course series and DSA series............GOT PLACED AT 7 LPA!!!!!!!!!!! Thank you for your help
@ApnaCollegeOfficial
@ApnaCollegeOfficial 2 жыл бұрын
Congratulations Adi!
@adisaxena4359
@adisaxena4359 2 жыл бұрын
@@ApnaCollegeOfficial Thank you!
@RohitVerma003
@RohitVerma003 Жыл бұрын
Hi Adi.. Can u share some tips
@Saiyan412
@Saiyan412 Жыл бұрын
@@RohitVerma003 that's his secret,i don't think he will share 🤣
@mohittiwari1636
@mohittiwari1636 Жыл бұрын
​@@adisaxena4359 congratulations bhaiya🎉🎉
@johnhammond3605
@johnhammond3605 2 жыл бұрын
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 жыл бұрын
They will not complete any series mark my words
@Highster_parish
@Highster_parish 2 жыл бұрын
Until u pay?
@johnhammond3605
@johnhammond3605 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 2 жыл бұрын
Just follow love babar bhaiya he has completed all topics
@HumanityisMyGoal
@HumanityisMyGoal 2 жыл бұрын
thank you so much didi aapki vajah se me java programming ki shuruaat kar paya ...basic knowledge ke liye thank u
@ankitashah4006
@ankitashah4006 9 ай бұрын
Really very good video and very useful information on HashMap implementation
@forester1
@forester1 2 жыл бұрын
This video bring ideas in my mind . Thank you
@princybhandari2553
@princybhandari2553 2 жыл бұрын
Thank u so much diii ❤️ for this video.... amezing video 😍
@stith_pragya
@stith_pragya 11 ай бұрын
Thank You So Much for this wonderful video........🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻
@jithinjjj
@jithinjjj 2 жыл бұрын
Thank you for coming back here🙏.. please solve more DSA questions from DATASHEET
@plugincoders9282
@plugincoders9282 2 жыл бұрын
Thank you very much didi Me kab se wait kar raha tha hashmap ka 🙏🙏
@arijitganguly8110
@arijitganguly8110 2 жыл бұрын
Thanks apna college ❤for a great lesson
@AmritSingh-du7pq
@AmritSingh-du7pq 2 жыл бұрын
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-eg2dr
@MuhammadIqbal-eg2dr 2 жыл бұрын
Thanks you Apna College❣️❣️
@itssmartkk7414
@itssmartkk7414 2 жыл бұрын
You are the best shradha didi ☺️❤️💫
@PradeepKumarIIITD
@PradeepKumarIIITD 2 жыл бұрын
presentation and the content is of best quality :)
@suravipanigrahi8507
@suravipanigrahi8507 Жыл бұрын
Thank you di completed and understood so perfectly .
@sbb613
@sbb613 25 күн бұрын
key - hashCode() -> hashfunctioin give random bucket index value, OR it give bucket index value which have minimum node.
@kartikgupta3762
@kartikgupta3762 2 жыл бұрын
waiting for this video from a very long time .. thank you very much
@TalhaKhan-ox5yr
@TalhaKhan-ox5yr 2 жыл бұрын
Madam g Apki har video pe smile krte huwe nazar ate ho Allah apko aisa he khush rakhy ❤
@abhishekjaiswal8722
@abhishekjaiswal8722 2 жыл бұрын
After long wait finally HashMap video in java series 🥳
@bharathtricks
@bharathtricks 2 жыл бұрын
Plzz explain clear from beginner to advanced with next level explanation
@Slayer-070
@Slayer-070 10 ай бұрын
should we add this line to the rehash function?? this.N = 2*N;
@chandershekhar9251
@chandershekhar9251 2 жыл бұрын
thanks for the hashmap tut Ma'am
@meshvpatel4017
@meshvpatel4017 2 жыл бұрын
Ma'm we are eagerly waiting for more videos for this playlist
@RitikKumar-bk6pj
@RitikKumar-bk6pj 2 жыл бұрын
Mam it's a nice explanation please make a video on a trie data structures
@rajdon7138
@rajdon7138 2 жыл бұрын
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
@divyasinghr4530
@divyasinghr4530 2 жыл бұрын
I request Apna college to please continue the web development course! please! many of us are still waiting for that!
@Nm.clasher
@Nm.clasher 2 жыл бұрын
my favourite dede love from nepal....🥰🥰
@sunielsharma8142
@sunielsharma8142 2 жыл бұрын
Coding queen 👑 Shraddha Didi ❤️
@krishnanshumishra4629
@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
@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..
@DilipBhuralalParihar
@DilipBhuralalParihar 24 күн бұрын
Thank you so much for this explanation..
@aanchaltyagi9457
@aanchaltyagi9457 Жыл бұрын
Thank u so much Ma'am for this knowledge......😊
@vaibhavbagde3703
@vaibhavbagde3703 2 жыл бұрын
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
@ashishdaspersonal539
@ashishdaspersonal539 2 жыл бұрын
Yes didi please complete this course we have our placement Going on
@VanditBuch
@VanditBuch 4 ай бұрын
Easy concept made too complex....We can't come at your level of understanding and hence we are not able to understand the concept
@jayshree5625
@jayshree5625 2 жыл бұрын
Thnku dii💝
@hustlewithhamza8443
@hustlewithhamza8443 2 жыл бұрын
DIDI is BACK 🌟🌟🌟
@respect_1197
@respect_1197 2 жыл бұрын
Thank god apko yaad aa hi gya ki video bhi banani h
@aniketsadal
@aniketsadal 2 жыл бұрын
CODING QUEEN= SHRADDHA DI Agree People hit like
@vijayanks1714
@vijayanks1714 2 жыл бұрын
Please do some video in eng or add subtitles it help more students
@anupamagrawal8876
@anupamagrawal8876 2 жыл бұрын
Didi please do a video on aeronautical & aerospace engineering waiting eagerly
@nitin4225
@nitin4225 2 жыл бұрын
Thank you didi 😇
@cricketclub1617
@cricketclub1617 2 жыл бұрын
Please upload all remaining videos as fast as possible. Please please 🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏
@cricketclub1617
@cricketclub1617 2 жыл бұрын
@@saurabhsinghdhami1999 graph ,dp , segment tree
@shaikhaadil2060
@shaikhaadil2060 2 жыл бұрын
Salute to didi ,She is giving her 100% to the students! A BIG thanks to uh didi:)
@anuragchatterjee82
@anuragchatterjee82 2 жыл бұрын
Didi Java pe full course banayenge na . playlist wise.
@clashlegendOfficial
@clashlegendOfficial 2 жыл бұрын
Bhai one shote vedio already hai Chapter wise bhi hai check playlist
@MohammadAli-ne7cv
@MohammadAli-ne7cv 8 ай бұрын
Ahaa kya video hai zabardast!!
@robinsonlimbu2956
@robinsonlimbu2956 Жыл бұрын
This video deserves millions of likes I am quite shock why only 3 k
@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
@AIInsightsGlobal
@AIInsightsGlobal 2 жыл бұрын
Bounce Back! ❤️
@mathematicspathshala11-12
@mathematicspathshala11-12 2 жыл бұрын
All daa concept in depth
@harshvarshney9979
@harshvarshney9979 2 жыл бұрын
Di after many time we forget the things so please upload lecture early as possible please
@shreyash1533
@shreyash1533 2 жыл бұрын
plz complete full dsa using java
@akshatvashishtha4626
@akshatvashishtha4626 2 жыл бұрын
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...
@kalpeshgabu4092
@kalpeshgabu4092 2 жыл бұрын
Mam Please 1 Project with frontity with Wordpress.
@navneet1167
@navneet1167 2 жыл бұрын
keep uploading video regularly plzzz
@paraskumar6142
@paraskumar6142 2 жыл бұрын
Then till keep learning and keep exploring 🙂
@vaibhav9693
@vaibhav9693 Жыл бұрын
very nice and optimize content , really amazing
@chessmaster5377
@chessmaster5377 2 жыл бұрын
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.
@asadullahallmamun3192
@asadullahallmamun3192 2 жыл бұрын
Make a video of graphs ...and upload video regularly...we are waiting for your video
@kunalchandrakar2917
@kunalchandrakar2917 2 жыл бұрын
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?
@HumanityisMyGoal
@HumanityisMyGoal 2 жыл бұрын
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
@munfeesfatima4508
@munfeesfatima4508 2 жыл бұрын
Plz complete this series...
@badalsahani112
@badalsahani112 2 жыл бұрын
Thank you shradha didi for this video. Bahot jyada wait kr liya tha iska
@badalsahani112
@badalsahani112 2 жыл бұрын
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😅😅
@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?
@khushansharora3383
@khushansharora3383 9 ай бұрын
34:00 summary of put()
@virendrakumar3457
@virendrakumar3457 2 жыл бұрын
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
@maheshnaikal9586
@maheshnaikal9586 2 жыл бұрын
Anyone from Maharashtra who known as मराठी 🚩
@Tusharvlogs777
@Tusharvlogs777 2 жыл бұрын
Hii you do such a great work by giving free qualitative coding education 🤎🤎🥵🥵❤️❤️
@Barrett1180
@Barrett1180 2 жыл бұрын
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 :)
@YashanshDubey8
@YashanshDubey8 2 жыл бұрын
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.
@jetixstar9070
@jetixstar9070 2 жыл бұрын
I follow you from 9 class🤗🤗
@shreyajain5058
@shreyajain5058 6 ай бұрын
In func rehash we must update this.N=N*2;
@zr0724
@zr0724 2 жыл бұрын
please make courses on algorithms and data structures in java. I really need those courses
@engineeringlife4567
@engineeringlife4567 2 жыл бұрын
Ma'am Android development ka bhi basic to advance koi course (paid or free) nikalo
@hajgudeprasad4440
@hajgudeprasad4440 2 жыл бұрын
Mam python ka bhi course lijiye na
@BrijeshPalUP1367
@BrijeshPalUP1367 2 жыл бұрын
Ma'am javascript ka new बैच ले के आए
@ajinzrathod
@ajinzrathod 9 ай бұрын
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?
@shivrajmulik1902
@shivrajmulik1902 2 жыл бұрын
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 😊
@shreyanshshikhar727
@shreyanshshikhar727 2 жыл бұрын
I have take alpha course. What is difference between alpha and KZbin 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.
@miliaurora1038
@miliaurora1038 2 жыл бұрын
C++ implementation kaise hota hai?
@arbabo-vy9rh
@arbabo-vy9rh 6 ай бұрын
mam ap lyeh likhne ke liye konsi application use kar rahay hain
@mathematicspathshala11-12
@mathematicspathshala11-12 2 жыл бұрын
Didi please complete the whole syllabus 🙏🏽🙏🏽🙏🏽🙏🏽🙏🏽🙏🏽🙏🏽🙏🏽🙏🏽🙏🏽
@harshaprakash4320
@harshaprakash4320 2 жыл бұрын
Bsc computer science and cognitive system+ mca or b tech csbs suggestion me which one to choose please
@rjesh2062
@rjesh2062 2 жыл бұрын
KZbin
@krisansen603
@krisansen603 2 жыл бұрын
Thank you mam. 🥰🥰💞🙏
@Gargee_Paul
@Gargee_Paul 2 жыл бұрын
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_Devp
@Shamsher_Devp 2 жыл бұрын
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 .
@ankurkumar8989
@ankurkumar8989 2 жыл бұрын
Amazing mam
@jetixstar9070
@jetixstar9070 2 жыл бұрын
Love u di😍😍😍
@ravisain9167
@ravisain9167 2 жыл бұрын
maam please make a video on linux
@praveenbhurrak6924
@praveenbhurrak6924 2 жыл бұрын
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
@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-rn1qf
@sagarsingh-rn1qf 2 жыл бұрын
Data structure ka Playlists chaiye
@chiranjitmandal5480
@chiranjitmandal5480 2 жыл бұрын
Didi Course Complete kar do jaldi ..☺️
@Legendgaming-Delaram
@Legendgaming-Delaram 2 жыл бұрын
didi please creat videos full implementation of array list and linked list did not use created java link list and array list library
@esntlaman3433
@esntlaman3433 2 жыл бұрын
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 жыл бұрын
Yes
@munfeesfatima4508
@munfeesfatima4508 2 жыл бұрын
@@ApnaCollegeOfficial pls complete the whole series
@Coding-Just
@Coding-Just Жыл бұрын
Yes bro you have eagle eyes 👁️👁️👁️ and concentrate on lectures like paid course👍👍👍
@Krackxis78
@Krackxis78 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
@IjazAhmad-wv9qx
@IjazAhmad-wv9qx 4 ай бұрын
pycharm is good for python code
@fambruhgamingshorts
@fambruhgamingshorts 2 жыл бұрын
❤️
@PrinceSingh-ll7jo
@PrinceSingh-ll7jo 2 жыл бұрын
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
@coderIvam
@coderIvam 2 жыл бұрын
Have you successfully installed a compiler ( mingw ) just after the vs code( may be other code editor)
@PrinceSingh-ll7jo
@PrinceSingh-ll7jo 2 жыл бұрын
@@coderIvam yes everything as shown in the video
@coderIvam
@coderIvam 2 жыл бұрын
Have you set the environment??
@coderIvam
@coderIvam 2 жыл бұрын
@@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)
@PrinceSingh-ll7jo
@PrinceSingh-ll7jo 2 жыл бұрын
@@coderIvam ok thanks sir
@royalhinduvlog10
@royalhinduvlog10 2 жыл бұрын
So sweets video
Hashing in Java | One Shot | 5 Best Questions
1:37:33
Apna College
Рет қаралды 210 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
Introduction to HashMap & HashTable in Java
1:39:46
Kunal Kushwaha
Рет қаралды 125 М.
Binary Tree in Data Structures | All about Binary Tree | DSA Course
1:22:13
Reality of my Google Salary after TAXES
6:54
Fraz
Рет қаралды 312 М.
Watch this before you start Coding! 5 Tips for Coders
13:53
Apna College
Рет қаралды 190 М.
Trie Data Structure | Java DSA Course
2:16:35
Apna College
Рет қаралды 239 М.
DevOps Complete Guide for 2025
18:10
Apna College
Рет қаралды 147 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН