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... • 3m

🧠 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

Shubham

Fearless • 1m

🚀 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

Sanskar

Keen Learner and Exp... • 15d

Day 6 of learning Data Science as a beginner. Topic: creating NumPy arrays NumPy arrays can be created using various ways one of them is using python list and converting it into a numpy array however this is a long way here you first create a pytho

See More
Reply
10
Image Description
Image Description

umang vaishnav

Lighting Up Your Dig... • 1m

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

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
Image Description
Image Description

Dileep Kadiveti

IoT Student with a C... • 1y

[This post has been deleted by the creator]

2 Replies
4
Image Description
Image Description

Aryan patil

Intern at YourStory ... • 1y

SEBI warned ⚠️ investors about Stock market bubble is about to burst anytime soon 📉 because The price-to-book (P/B) ratio of the Nifty Midcap 150 index is 4.26, and the Nifty Midcap 50 index has a P/B ratio of 3.64 This Means valuations of the Mid/s

See More
3 Replies
8

Sanskar

Keen Learner and Exp... • 13d

Day 7 of learning Data Science as a beginner. Topic: Indexing and Slicing NumPy arrays Since a past few days I have been learning about NumPy arrays I have learned about creating arrays from list and using other numpy functions today I learned abou

See More
Reply
1

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