hello-algo icon indicating copy to clipboard operation
hello-algo copied to clipboard

add zig code for chapter_computational_complexity (Zig Version 0.10.0)

Open coderonion opened this issue 2 years ago • 1 comments

If this PR is related to coding or code translation, please fill out the checklist.

  • [x] I've tested the code and ensured the outputs are the same as the outputs of reference codes.
  • [x] I've checked the codes (formatting, comments, indentation, file header, etc) carefully.
  • [x] The code does not rely on a particular environment or IDE and can be executed on a standard system (Win, macOS, Ubuntu).

coderonion avatar Dec 28 '22 12:12 coderonion

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
hello-algo ⬜️ Ignored (Inspect) Dec 30, 2022 at 2:47PM (UTC)

vercel[bot] avatar Dec 28 '22 12:12 vercel[bot]

Thanks for the clean code!

Could you paste the output of the code to this PR? Because I don't write Zig and can not run it.

No problem! The output of time_complexity.zig as shown below. time_complexity The output of worst_best_time_complexity.zig as shown below. worst_best_time_complexity

coderonion avatar Jan 02 '23 12:01 coderonion

Thanks, @sjinzh! I'm wondering if you will continue to add the zig codes because it is difficult to find other zig coders.

Yes, i will.

coderonion avatar Jan 02 '23 13:01 coderonion