Back

Sidharth s

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

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...ย โ€ขย 4m

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

You make it choices ...ย โ€ขย 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

Vedanshu Sharma

Executingย โ€ขย 1m

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

Sanskar

Keen Learner and Exp...ย โ€ขย 1m

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

Shubham

Fearlessย โ€ขย 2m

๐Ÿš€ 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

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