All Tracks/workshop linked list js/
Đang tải...
Hướng dẫn thử thách
1 / 21

Step 1

In this workshop, you'll implement a linked list. To begin, create a function named `initList`. Inside it, return an object with a `head` property set to `null`, and a `length` property of `0`. This is the function you will call to initialize a linked list. The `head` represents the first element in the list, initially, it is `null` because there's no element in the list. The `length` tracks the number of nodes (elements) in the list, which you will increment or decrement when adding or removing a node from the list.
Vượt qua bài kiểm tra hiện tại để mở khóa bài tiếp theo.
main.js
UTF-8 • Tab Size: 2Kiểm tra bài:⌘↵
Test Output
Thử thách này không có bài test tự động. Hãy quan sát kết quả trực tiếp ở khung Preview.