Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

🐛 Needed code modification for insert method in LinkList code

Aperta
#1,004 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript
Ambito
data

Direzione di ricerca

Locate the linked-list implementation and its insert method, then reproduce insert(value, lengthOfTheList) using the issue's example. Check the linked-list tests if present and verify that inserting at the end updates the tail to the new final node without leaving another node after it.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

If I use the below-insert method, I will give the input as insert(value, lengthOfTheList).
In this scenario, the value is added to the end of the list, but the tail is not changed to the end of the list.

image

In the above example, I add the value at the end of the list, but the tail is not changed to the end.
🐛 tail has another node.

Lingua principale
JavaScript
Stelle
197k
Fork
31k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di trekhleb/javascript-algorithms

Tutte le issue di trekhleb/javascript-algorithms

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.