C Language Data Structures: Complete Implementation of a Handwritten HashMap (Reusable + High Performance)

C Language Data Structures: Complete Implementation of a Handwritten HashMap (Reusable + High Performance)

Understanding HashMap in One Image The structure implemented using an array + linked list (chaining method) is shown below:Key Points Recap: HashMap uses an array (buckets), where each bucket stores a conflict linked list (or other structures). The hash function maps the key to a hash value, and then the modulus operation is used to … Read more

Building Stock Market Engine From Scratch in Rust

Building Stock Market Engine From Scratch in Rust

This article is translated from Medium Original: Building Stock Market Engine from scratch in Rust https://github.com/Harshil-Jani/stock_engine_rs Medium This article is relatively basic, but it is very helpful for beginners to understand a simple trading system prototype. From the perspective of the exchange matching engine, the main structure is shown in the figure below: The four … Read more

Implementing a HashMap in C Language

Implementing a HashMap in C Language

In the world of data structures, a HashMap is an efficient tool for storing and retrieving data. It stores data in the form of key-value pairs, allowing for insertions, deletions, and lookups to be performed in average constant time complexity. Today, we will implement a simple HashMap using the C programming language. 1. Introduction to … Read more