This commit is contained in:
krahets
2023-08-04 05:24:49 +08:00
parent c4046ca688
commit fafdebb75c
27 changed files with 972 additions and 536 deletions

View File

@@ -1090,7 +1090,7 @@ elementAddr = firtstElementAddr + elementLength * elementIndex
/* 在数组中查找指定元素 */
function find(nums, target) {
for (let i = 0; i < nums.length; i++) {
if (nums[i] == target) return i;
if (nums[i] === target) return i;
}
return -1;
}

View File

@@ -13,11 +13,9 @@ icon: material/view-list-outline
!!! abstract
组的砖块整齐排列,紧贴在一起
链表的砖块分散各处,连接的藤蔓自由地穿梭于砖缝之间。
它们共同构成了数据结构的世界。
据结构的世界如同一睹厚实的砖墙
数组的砖块整齐排列,逐个紧贴。链表的砖块分散各处,连接的藤蔓自由地穿梭于砖缝之间。
## 本章内容