Back

Sidharth s

Restarting -loop-beg...ย โ€ขย 8m

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...ย โ€ขย 29d

๐Ÿง  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

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

Deep

Karma is supremeย โ€ขย 5m

Stock Market: If small cap index closes above yesterday's high then that will be sign of reversal or consolidation. No more brutal selling for few days.

Reply
9

Muttu Havalagi

๐ŸŽฅ-๐ŸŽต-๐Ÿ-โšฝ "Finding ...ย โ€ขย 1y

1. Java: - History: Java was developed by James Gosling at Sun Microsystems and was released in 1995. It was designed to be platform-independent, secure, and easy to use. - Unique Fact: The original name for Java was "Oak." It was later renamed

See More
Reply
1

Kumar Pranjal

Founder, Domainlyย โ€ขย 11m

We are excited to announce that Domainly has successfully partnered with **Avriti**, an open freelance platform that offers a comprehensive range of online and offline services across diverse categories and subcategories. This collaboration will enab

See More
Reply
2

Vaibhav Gupta

Lifelong Learnerย โ€ขย 1y

๐Ÿ“Š Index Funds vs. Active Funds: The Changing Landscape of Investing ๐Ÿ”„ Index funds have been on an incredible growth trajectory over the past 5-7 years, offering affordability, transparency, and consistent performance that outshines many active fund

See More
Reply
6

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