From java 8 onwards, when linked list is formed for same index values, after threshold value=8 the linked list restructured into balanced binary tree. So that the complexity is O(log n) as list complexity is O(n) in worst case.
@nr09133 жыл бұрын
nice explanation. simple to understand!!
@ashrafm35642 жыл бұрын
Sahi h boss hat's off
@vasunttfshimoga3 жыл бұрын
Very clean and detail explanation!
@DanielLpz13 жыл бұрын
Very helpful and clean
@karismachoudhury2224 жыл бұрын
Nice explanation...
@tadurirk4 жыл бұрын
Nice explanation thanks
@nikhiljose20294 жыл бұрын
Super explanation
@Daxbedivlogs4 жыл бұрын
Nice tutorial .. do you also give live coaching for frameworks , microservices or devops?
@ByteProgrammingVedantHarish4 жыл бұрын
@DAX Not yet! Any special topic you are looking for?
@ByteProgrammingVedantHarish4 жыл бұрын
@@Daxbedivlogs Sure, i will put some full stack video solutions. Stay tuned!
@titaneden78253 жыл бұрын
InstaBlaster
@ladeharish55144 жыл бұрын
Nice explanation, please do the same for ArrayList and LinkedList. Expecting more videos. Please do more videos by covering all the concepts
@ByteProgrammingVedantHarish4 жыл бұрын
Sure ! Stay tuned
@prabhuchandran83673 жыл бұрын
Excellent explanation .. keep going
@ByteProgrammingVedantHarish3 жыл бұрын
Glad you liked it
@ChetanJain15073 жыл бұрын
Nice tutorial, thank you.
@ByteProgrammingVedantHarish3 жыл бұрын
Glad it was helpful!
@kevalsheth96394 жыл бұрын
Great video! Please make a video on hashCode and equals.
@ByteProgrammingVedantHarish4 жыл бұрын
Sure! Stay tuned!
@at_tap3 жыл бұрын
very good
@sergialabartcastro66884 жыл бұрын
Does it work with consecutively inputs? For example: ABC = 123 A=1 B=2 C=3
@ByteProgrammingVedantHarish4 жыл бұрын
@Sergi I might have understand a bit differently from you about your point. If that's happened, please brief me. How is see HashMap : 1. HashMap works on key-value pair where key needs to be unique. Why unique key? 2. hashcode is calculated from the key and it influences determination of bucket location. Bucket Loc = hashcode & (n-1) Example : For string class, Hashcode calculation = s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1] here s[i] is the character and n is the length. For any custom class : good to implement the hashcode. 3. You might end up with same hashcode, might result in same index and hence collision. Even if you have different hashcode, still might end up at same index, hence collision again. 4. If inserted another value with same key, previous value would be replaced with new value and output of this put operation will be previous value. Above scenario : 1. All keys are unique. So, Insertion of all value to hashmap.
@sergialabartcastro66884 жыл бұрын
Thanks, but I think thai this is not exactly what I meant. When the program is finished I want to introduce some values without gaps and get the keys. Is that possible?
@ByteProgrammingVedantHarish4 жыл бұрын
@@sergialabartcastro6688 If not wrong, are we trying to populate data into hashmap in sequential manner? At index0, then 1, then 2 and so on?
@sergialabartcastro66884 жыл бұрын
It is not sequential. You can write all the values you want without gaps
@ByteProgrammingVedantHarish4 жыл бұрын
@@sergialabartcastro6688 still not getting "without gaps" . can you describe more or send detailed steps plz, describing what you are trying to achieve.
@kevalsheth96394 жыл бұрын
Waiting for Java Collections Part 2
@ByteProgrammingVedantHarish4 жыл бұрын
@Keval Soon it would be available
@priyagade87883 жыл бұрын
Thank you sir
@ByteProgrammingVedantHarish3 жыл бұрын
Stay tuned!
@gowthamchakravarthi69823 жыл бұрын
Bro reply me: Index calculation explain comment bro Index = 66 & (15-1) How to calculate bro (&) => symbol what we take bro.