add zig codes for Section 'Hash Map' and 'Linear Search'

This commit is contained in:
sjinzh
2023-01-13 23:40:37 +08:00
parent 722fb71bdd
commit 6f65c84e36
3 changed files with 5 additions and 1 deletions

View File

@@ -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;
}
};
}