mirror of
https://github.com/krahets/hello-algo.git
synced 2026-07-10 06:26:08 +00:00
add zig codes for Section 'Hash Map' and 'Linear Search'
This commit is contained in:
@@ -16,6 +16,7 @@ pub fn ListNode(comptime T: type) type {
|
||||
// Initialize a list node with specific value
|
||||
pub fn init(self: *Self, x: i32) void {
|
||||
self.val = x;
|
||||
self.next = null;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user