Skip to content

Instantly share code, notes, and snippets.

Urvashi misss-popcorn

View GitHub Profile
View singly-linked-list-using-js.js
/**
* Initialize your data structure here.
*/
var MyLinkedList = function() {
this.node = value => {
return { value, next: null };
};
this.head = null;
You can’t perform that action at this time.