Articles by Tag #hashmap

Browse our collection of articles on various topics related to IT technologies. Dive in and explore something new!

The Magic Behind Instant Lookups: Understanding Hashing and Java's HashMap

1. Hashing: The Core Concept Hashing is a technique used to convert a large key into a small integer...

Learn More 0 0Oct 22

Cache Optimization in Rust: From HashMap Surprises to 4x Image Processing Speedup

The Surprising Benchmark Imagine we have a task, me and you: a file with 10000 words in it...

Learn More 0 0Nov 26

When Would You Use a TreeMap Over a HashMap?

Learn when to use a TreeMap over a HashMap in Java. Understand their differences, use cases,...

Learn More 5 0Nov 6

Why Map Lookups Are Slower Than Object Lookups in JavaScript

Imagine this: you’re optimizing your JavaScript code and you notice something odd. You’re using a Map...

Learn More 1 0Oct 30

Prefix Sums Keep Breaking? This Visual Guide Fixes That

Indices, ranges, and hash maps collide during interviews. Here's how to visualize prefix sums so subarray problems feel repeatable.

Learn More 0 0Dec 13

Why Java hashmap uses null key and stores it in 0th index?

In Java's HashMap, a null key is stored in bucket 0 because the hashCode() method cannot be invoked...

Learn More 1 0Nov 27

🗺️ Go Maps Deep Dive — Part 0: Understanding the Basics

Note: Most of the details in this article apply to both the old and new Go map implementations...

Learn More 9 0Sep 9

Creating a hashmap from scratch in Golang

Recently I was watching this video from a Brazilian youtuber called Augusto Galego about creating a...

Learn More 13 0Feb 12

HashMap in java

Java HashMap Example import java.util.*; public class HashMapExample1{ public static void...

Learn More 5 0Mar 31

[📝LeetCode #13] Roman to Integer

🎀 The Problem Roman numerals are represented by seven different symbols: I, V, X, L, C, D...

Learn More 2 2Jun 4

HashMap - Internal Working

🚀 How HashMap Works Internally in Java? 🧐 A HashMap in Java is a key-value pair data structure that...

Learn More 0 0Jun 2

Unfolding: LeetCode 560. Subarray Sum Equals K

A disguised medium difficulty problem in LeetCode. We must honor this as a hard one... :) Source...

Learn More 0 0May 22

Copy Linked List with random pointer

Problem tc :O(n) where n is no. of nodes in the original linked list Iterative approach: /* //...

Learn More 0 0Apr 18

How to Work with HashMap in Java

HashMap is a powerful data structure in Java that allows you to store and manage key-value pairs...

Learn More 2 0Jan 24

What is "TypedDict" in Python

Introduction In Python, dictionaries are one of the most flexible and widely used data...

Learn More 2 0May 3

Playing with HashMap<>(); in java

Today learned the intresting topic to see is HashMap Concept and play with HashMap...

Learn More 1 0Feb 18

Chapter II : A Dive into JavaScript HashMaps

HashMaps in JavaScript: Unlock Fast Data! Want to understand how HashMaps (or hash tables) provide...

Learn More 0 0Jul 3