mirror of
				https://github.com/krahets/hello-algo.git
				synced 2025-10-31 10:26:48 +08:00 
			
		
		
		
	code: update zig 0.14.1 for the chapter of array_and_linkedlist and computational_complexity (#1787)
* update zig array list chapter * update not need change codes. * fix some pr issues and update time space chapter
This commit is contained in:
		| @ -15,7 +15,7 @@ | ||||
|     ```python title="array.py" | ||||
|     # 初始化数组 | ||||
|     arr: list[int] = [0] * 5  # [ 0, 0, 0, 0, 0 ] | ||||
|     nums: list[int] = [1, 3, 2, 5, 4]   | ||||
|     nums: list[int] = [1, 3, 2, 5, 4] | ||||
|     ``` | ||||
|  | ||||
| === "C++" | ||||
| @ -130,8 +130,8 @@ | ||||
|  | ||||
|     ```zig title="array.zig" | ||||
|     // 初始化数组 | ||||
|     var arr = [_]i32{0} ** 5; // { 0, 0, 0, 0, 0 } | ||||
|     var nums = [_]i32{ 1, 3, 2, 5, 4 }; | ||||
|     const arr = [_]i32{0} ** 5; // { 0, 0, 0, 0, 0 } | ||||
|     const nums = [_]i32{ 1, 3, 2, 5, 4 }; | ||||
|     ``` | ||||
|  | ||||
| ??? pythontutor "可视化运行" | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 MetaSky
					MetaSky