Tagged articles
12 articles
Page 1 of 1
Sohu Tech Products
Sohu Tech Products
Oct 12, 2022 · Fundamentals

Understanding the Underlying Principles of Java HashMap

This article explains how Java's HashMap stores key‑value pairs using an array of nodes, how hash functions map keys to array indices, how collisions are handled with linked lists and red‑black trees, and why proper hashCode implementations are crucial for performance.

CollisionData StructureHashMap
0 likes · 20 min read
Understanding the Underlying Principles of Java HashMap
Sohu Tech Products
Sohu Tech Products
Oct 7, 2022 · Fundamentals

Understanding the Underlying Principles of Java HashMap

This article explains how Java's HashMap stores key‑value pairs using an array‑plus‑linked‑list structure, details the hash function, index calculation, collision handling, resizing, and the conditions under which linked lists are replaced by red‑black trees, illustrated with concrete code examples.

CollisionHashMapRed-Black Tree
0 likes · 20 min read
Understanding the Underlying Principles of Java HashMap
LOFTER Tech Team
LOFTER Tech Team
Aug 15, 2022 · Game Development

Implement Touch‑Controlled Movement, Directional Walking Animations, and Physics Collisions for a Hero Character in Cocos Creator

This guide demonstrates how to enable touch‑based movement for a hero character, add directional walking animations, integrate animation logic, and implement physics‑based collision detection with walls in Cocos Creator, including code snippets for event handling, animation state management, and physics component setup.

Cocos CreatorCollisionGame Development
0 likes · 18 min read
Implement Touch‑Controlled Movement, Directional Walking Animations, and Physics Collisions for a Hero Character in Cocos Creator
LOFTER Tech Team
LOFTER Tech Team
Aug 5, 2022 · Game Development

Guide to Creating, Editing, and Using Tiled Maps in Cocos Creator

This tutorial explains how to use the Tiled map editor to design tile‑based levels, import and configure the generated maps in a Cocos Creator project, add animations, replace maps, and switch to curve‑based collision walls for smoother gameplay.

Cocos CreatorCollisionGame Development
0 likes · 16 min read
Guide to Creating, Editing, and Using Tiled Maps in Cocos Creator
Java Interview Crash Guide
Java Interview Crash Guide
Feb 28, 2022 · Fundamentals

Understanding Java HashMap: Collision Resolution and Performance

This article explains the internal structure of Java's HashMap, how it computes hash codes, resolves collisions using chaining, the impact of load factor and capacity on performance, and provides detailed source code analysis of its key methods such as put, get, resize, and entry handling.

CollisionData StructureHashMap
0 likes · 22 min read
Understanding Java HashMap: Collision Resolution and Performance
Aotu Lab
Aotu Lab
Mar 9, 2021 · Game Development

How to Build a ‘Merge Watermelon’ Game with Phaser 3 and TypeScript

This step‑by‑step guide shows how to create a simple “merge watermelon” HTML5 game using Phaser 3, TypeScript, and Matter.js physics, covering project setup, asset loading, fruit creation, input handling, collision logic, scoring, and game‑over detection.

CollisionGame DevelopmentHTML5
0 likes · 10 min read
How to Build a ‘Merge Watermelon’ Game with Phaser 3 and TypeScript
Sohu Tech Products
Sohu Tech Products
May 13, 2020 · Fundamentals

Deep Dive into Java HashMap: Implementation, hashCode/equals, Collision Handling, and Interview Questions

This article provides a comprehensive overview of Java's HashMap, covering its place in the Set and Map families, internal implementation details, the relationship between hashCode() and equals(), collision resolution strategies, basic operations, differences from Hashtable, and several classic interview problems such as Top‑K frequency and LRU cache design.

CollisionData StructuresHashMap
0 likes · 14 min read
Deep Dive into Java HashMap: Implementation, hashCode/equals, Collision Handling, and Interview Questions