mirror of
https://github.com/krahets/hello-algo.git
synced 2026-04-14 02:10:37 +08:00
add zig codes for Section 'Hash Map' and 'Linear Search'
This commit is contained in:
@@ -17,6 +17,8 @@ pub fn TreeNode(comptime T: type) type {
|
||||
// Initialize a tree node with specific value
|
||||
pub fn init(self: *Self, x: i32) void {
|
||||
self.val = x;
|
||||
self.left = null;
|
||||
self.right = null;
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user