mirror of
https://github.com/krahets/hello-algo.git
synced 2025-02-02 22:43:50 +08:00
add zig codes for Section 'Binary Tree'
This commit is contained in:
parent
e8f1a676b2
commit
de2c9c352d
@ -7,10 +7,6 @@ const inc = @import("include");
|
||||
|
||||
// Driver Code
|
||||
pub fn main() !void {
|
||||
// 查看本地CPU架构和操作系统信息
|
||||
var native_target_info = try std.zig.system.NativeTargetInfo.detect(std.zig.CrossTarget{});
|
||||
std.debug.print("Native Info: CPU Arch = {}, OS = {}\n", .{native_target_info.target.cpu.arch, native_target_info.target.os.tag});
|
||||
|
||||
// 初始化二叉树
|
||||
// 初始化结点
|
||||
var n1 = inc.TreeNode(i32){ .val = 1 };
|
||||
|
Loading…
Reference in New Issue
Block a user