celeroncoder / celeroncoder/Data-Structures

insertNode of the javascript library method not working correctly

Aberta
#2 0 comentários 0 reações 1 responsável Reivindicada por @celeroncoder Ver no GitHub
bug invalid
Linguagem predominante
Sem dados de linguagem
Estrelas
0
Forks
0
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

- __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)

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.