Back

Sidharth s

Restarting -loop-beg... • 10m

Ever thought how hashmaps work internally in java ,, lets understand So in java , array of LinkedLists is used to implement hashmap. for example when we write HashMaphmap=new HashMap<>(); hmap.put("sss",1); when we intialize a hashmap a array of linkedlist is created of size 16 where each index of that array represents a linkedlist. Now when we put the value inside it , it takes the key and generates a hash value , then that hash value is converted to a index number by doing '&' operation with the length of the array After that the data is stored at that index , as a node of linkedlist , SO the what data that node stores ?? (1)hashed value (2)key (3)value (4)next

3 Replies
2
8
Replies (3)

More like this

Recommendations from Medial

Comet

#freelancer • 1y

Master the Magic of HashMap in Java! Curious about how HashMap works behind the scenes? 🤔 Learn about hashing, buckets, and collision handling to boost your Java skills and optimize your applications for peak performance. Ready to dive in? Expl

See More
2 Replies
9

Arihant Jain

Crafting Impactful A... • 2m

🧠 Programming Challenge of the Day Can you solve this? You're given an integer array (with both positive and negative values). Each element in the array represents the number of stars (*) to be printed vertically in its column: 🔹 Positive values

See More
Reply
2
3

Prince Singh Chouhan

Front-end Developer • 1y

#Array in #javascript: Array in Javascript enables storing a collection of multiple items under a single variable name, and has members for performing common array operations. Arrays aren't primitives but are instead Array #objects with the followin

See More
Reply
2
Image Description
Image Description

umang vaishnav

Lighting Up Your Dig... • 22d

In mobile UI, put the slider values above the slider, not below. Because when users touch it, their index finger covers part of the values, so they won't be sure which value is currently Selected in mobile UI, put the slider values above the slider,

See More
2 Replies
11
1

Vedanshu Sharma

Executing • 7d

Hi everyone, My cousin Anurag Gaur is looking for a Software Developer role (Fresher). He’s worked on MERN Stack & Java Spring Boot, skilled in React, Node, Java, MySQL, MongoDB. Please let me know if there are any openings. Resume Attached

Reply

Somen Das

Senior developer | b... • 1y

Array.reduce() is Goated the Swiss army knife Summing Numbers: Using reduce() to calculate the sum of numbers in an array. Flattening Arrays: Flattening a nested array into a single array. Grouping Objects: Grouping objects based on a speci

See More
Reply
5

Atharva Deshmukh

Daily Learnings... • 1y

The Stock Market Index When we want to know about the trends in the market, we need to analyze few of the important companies in each industry. The important companies are pre-packaged and continuously monitored to give you this information. This pr

See More
Reply
7

Shubham

Fearless • 24d

🚀 Day 4/21 – My JavaScript Learning Journey Today’s focus: Arrays in JavaScript 📦 An Array is a special object in JS used to store multiple values in a single variable. 🔹 Creating Arrays let fruits = ["Apple", "Banana", "Mango"]; 🔹 Common Me

See More
Reply
3
Image Description
Image Description

Dileep Kadiveti

IoT Student with a C... • 1y

[This post has been deleted by the creator]

2 Replies
4

Download the medial app to read full posts, comements and news.