Skip to content

Instantly share code, notes, and snippets.

View lxbme's full-sized avatar
😈
Learning

Yuhan lxbme

😈
Learning
  • SWJTU
  • Chengdu, China
View GitHub Profile
@lxbme
lxbme / hashmap.zig
Last active April 24, 2026 05:06
A basic hashmap implementation with zig
const std = @import("std");
const INIT_CAPACITY: usize = 4;
pub fn Hashmap(comptime K: type, comptime V: type) type {
return struct {
const Self = @This();
keys: []?K,
values: []?V,