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 摘要。