Tagged articles
11 articles
Page 1 of 1
IT Services Circle
IT Services Circle
Sep 8, 2025 · Fundamentals

How to Count Subarrays with Sum K Using Prefix Sum and HashMap

This article first highlights Ctrip's employee benefits, then presents the LeetCode 560 subarray sum problem with detailed explanations and multi-language implementations using prefix sum and hash map, including Java, C++, Python, and TypeScript solutions, and discusses time and space complexities.

CJavaLeetCode
0 likes · 6 min read
How to Count Subarrays with Sum K Using Prefix Sum and HashMap
Architect's Guide
Architect's Guide
Jun 18, 2025 · Fundamentals

Master LRU Cache: O(1) Implementation with Hash-Linked List in Java

Learn how to design and implement an O(1) LRU (Least Recently Used) cache in Java using a combined hash map and doubly linked list, covering algorithm concepts, data structure choices, method details, and complete code with examples and explanations.

Doubly Linked ListJavaO(1) Operations
0 likes · 10 min read
Master LRU Cache: O(1) Implementation with Hash-Linked List in Java
Xiao Lou's Tech Notes
Xiao Lou's Tech Notes
Feb 17, 2025 · Backend Development

Swiss Tables in Go 1.24: Open Addressing, SIMD, and Metadata Secrets

The article explains how Go 1.24’s new Swiss Tables hash‑map implementation replaces the traditional bucket‑based design with open addressing, SIMD‑accelerated probing, and metadata separation, detailing the underlying principles, performance advantages, handling of clustering and deletions, and a comparison with previous Go maps and Java’s HashMap.

GoSIMDhash map
0 likes · 16 min read
Swiss Tables in Go 1.24: Open Addressing, SIMD, and Metadata Secrets
php Courses
php Courses
Jul 12, 2024 · Fundamentals

Detecting Duplicate Elements in an Array Using PHP

This article explains how to determine whether an integer array contains any duplicate values by iterating through the elements, using a hash map for constant‑time lookups, and provides a PHP implementation of the containsDuplicate function along with its time and space complexity analysis.

Arrayalgorithmduplicate detection
0 likes · 4 min read
Detecting Duplicate Elements in an Array Using PHP
Java Tech Enthusiast
Java Tech Enthusiast
May 12, 2024 · Fundamentals

Hash Table Showdown: How Different Languages Resolve Collisions and Resize

A whimsical yet technical dialogue among Go, C++, Python, Java, and C# representatives reveals the storage structures, collision‑resolution strategies, hash‑to‑index mapping techniques, and resizing policies used in their hash table implementations, highlighting trade‑offs and design choices.

Data Structurecapacitycollision-resolution
0 likes · 9 min read
Hash Table Showdown: How Different Languages Resolve Collisions and Resize
Xiao Lou's Tech Notes
Xiao Lou's Tech Notes
Aug 31, 2022 · Fundamentals

Why My Simple Go Map Solution Timed Out and How I Fixed It

After struggling with a seemingly easy scoring problem in a regional programming contest, the author details multiple Go implementations—including a map, a 27‑base array, and a trie—examines their time and memory issues, discovers input handling pitfalls, and ultimately achieves an accepted solution.

Triealgorithmcompetitive programming
0 likes · 14 min read
Why My Simple Go Map Solution Timed Out and How I Fixed It
Tencent Cloud Developer
Tencent Cloud Developer
Aug 18, 2022 · Fundamentals

Perfect Hash Functions and Their Use in High‑Performance HashMaps

The article explains perfect hash functions, their collision‑free construction methods such as FCH, CHD, and PTHash, compares them to conventional hash tables, reviews common and cryptographic hash functions, and shows how read‑only perfect‑hash maps deliver faster lookups and lower memory use for static key sets.

BenchmarkData Structurealgorithm
0 likes · 21 min read
Perfect Hash Functions and Their Use in High‑Performance HashMaps
Liangxu Linux
Liangxu Linux
Mar 20, 2021 · Game Development

How a Hacker Cut GTA Online’s Loading Time by 70% Using Code Hooks

A reverse‑engineer discovered that GTA Online’s slow startup stems from an inefficient if‑loop that scans a 10 MB JSON file 1.98 billion times, and by hooking strlen and replacing the loop with a hash‑map, reduced load times from six minutes to under two minutes.

GTA OnlinePerformance Optimizationcode hooking
0 likes · 6 min read
How a Hacker Cut GTA Online’s Loading Time by 70% Using Code Hooks