Inserting, removing, accessing, modifying, by index, on linked list
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 25/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- javascript
- 領域
- data
研究方向
Start by locating the linked-list implementation and reviewing its existing public operations. Confirm whether Insert, Remove, Get, and Set fit the current API, then add the agreed operations with behavior matching the stated preconditions and postconditions.
由索引模型根據 Issue 內容生成。
描述
Insert(head, index, value)
Pre: head is the head node in the list
Post: the list at the new index is the value; all items in the list are shifted up one index (trivial in a linked list).
Remove(head, index)
Pre: head is the head node in the list
Post: the item at the index is returned; all items after that index are shifted down one index (trivial in a linked list).
Get(head, index)
Pre: head is the head node in the list
Post: the item at the index is returned.
Set(head, index, value)
Pre: head is the head node in the list
Post: the previous item at the index is returned; the index now holds the new value
These seem like important features to be in a list. Should we add these? (Also, I'm kinda new to contributing; should these 4 functions be separate issues, or are they related enough that they make sense as one issue?)
- 主要語言
- JavaScript
- 星號
- 197k
- 分支
- 31k
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
trekhleb/javascript-algorithms 的其他 Issue
-
squareRoot(6) returns 3, squareRoot(12) returns 4; test expects squareRoot(3, 1) = 1.8 (correct: 1.7)可能已有人在做 @devladpopov 於 3 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
trekhleb/javascript-algorithms#2231 · 1 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 76/100
trekhleb/javascript-algorithms#2225 ·
-
BinarySearchTreeNode removing可能已有人在做 @bbonch 於 269 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100
trekhleb/javascript-algorithms#2102 · 1 則留言 ·
-
math: uniquePaths and leastCommonMultiple return non-integers below 2^53; iterative Euclid is subtraction-based and can hang可能已有人在做 @Shubham-Padkonde 於 12 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 35/100
trekhleb/javascript-algorithms#2238 ·
-
Trie.deleteWord fails for words containing characters outside the BMP (e.g. emoji)可能已有人在做 @Shubham-Padkonde 於 12 天前認領。 未關閉
難度 1/5 1 小時以內 新手友好度 35/100
trekhleb/javascript-algorithms#2237 ·
查看 trekhleb/javascript-algorithms 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆
-
help wanted Idea 💡 wdio-cli
難度 2/5 1-3 小時 新手友好度 66/100
webdriverio/webdriverio#16361 · 2 則留言 ·
維護者通常 1 天內回覆
-
bug new-client
難度 1/5 1-3 小時 新手友好度 88/100
NUWCDIVNPT/stig-manager#2285 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 88/100
Fei2411/DeepSeek-Bot#922 · 1 個 reaction ·
-
Workers AI integration drops output of non-streaming chat responses in the OpenAI format (`choices`)未關閉Bug Cloudflare Workers Spans
難度 2/5 1-3 小時 新手友好度 78/100
getsentry/sentry-javascript#26120 · 1 則留言 ·
維護者通常 1 天內回覆