mirror of
https://github.com/krahets/hello-algo.git
synced 2026-04-05 11:41:22 +08:00
build
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -13,11 +13,9 @@ icon: material/view-list-outline
|
||||
|
||||
!!! abstract
|
||||
|
||||
数组的砖块整齐排列,紧贴在一起。
|
||||
|
||||
链表的砖块分散各处,连接的藤蔓自由地穿梭于砖缝之间。
|
||||
|
||||
它们共同构成了数据结构的世界。
|
||||
数据结构的世界如同一睹厚实的砖墙。
|
||||
|
||||
数组的砖块整齐排列,逐个紧贴。链表的砖块分散各处,连接的藤蔓自由地穿梭于砖缝之间。
|
||||
|
||||
## 本章内容
|
||||
|
||||
|
||||
Reference in New Issue
Block a user