celeroncoder / celeroncoder/Data-Structures

insertNode of the javascript library method not working correctly

未關閉
#2 0 則留言 0 個 reaction 已指派 1 人 已被 @celeroncoder 認領 在 GitHub 檢視
bug invalid
主要語言
沒有語言資料
星號
0
分支
0
PR 合併指標
30 天內沒有已合併 PR

描述

- __InsertNode method__ works __ok if the index passed is 0__ but __not__ when the __index is something else__.

- __Index Check is not working__ since it don't return false on unspecified index in the list.
```
if (index > 0 && index > this.size) {
return false;
} else { ... }
```

- __Commit__ eb3a682780755ef7bb581d664f48d502700fa576
- :deciduous_tree: [__Branch__](https://github.com/khushalbhardwaj-0111/Data-Structures/tree/linked_list_js)

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。