You are viewing a single comment's thread. Return to all comments →
there seems to be an error on main in the javascript node version, temp is being assigned even though is a const variable
const extra = new SinglyLinkedListNode(-1); const temp = llist.head; for (let i = 0; i < llistCount; i++) { if (i == index) { extra = temp; } if (i != llistCount-1) { temp = temp.next; } }
Seems like cookies are disabled on this browser, please enable them to open this website
Cycle Detection
You are viewing a single comment's thread. Return to all comments →
there seems to be an error on main in the javascript node version, temp is being assigned even though is a const variable