Skip to content

Instantly share code, notes, and snippets.

View dineshrajpurohit's full-sized avatar

Dinesh Purohit dineshrajpurohit

View GitHub Profile
@dineshrajpurohit
dineshrajpurohit / DoublyLinkedList.js
Last active August 29, 2015 14:05
Doubly Linked list implementation using Javascript
/**
* Javascript implementation of Doubly Linked list
*
* Dinesh
*
* (More to come) (Add more error handling scenarios)
*/
// Global object (namespace)
DS = {};
@dineshrajpurohit
dineshrajpurohit / DoublyLinkedList.java
Last active August 29, 2015 14:05
Doubly Linked List written in Java
/**
* Singly Linked list implementation in Java
*
* Copy the 3 classes in DList.java, DLinkedList.java and Main.java in order to run the implementation
*
* Dinesh
*
* ____________ _____________ ______________
* |item "test1"| | item "test2"| | item "test3" |
* | next |-------->| next |----->| next |------>null
@dineshrajpurohit
dineshrajpurohit / SinglyLinkedList.java
Last active October 5, 2023 02:23
Basic Singly Linked List implementation in Java
/**
* Singly Linked list implementation in Java
*
* Copy the 3 classes in Node.java, LinkedList.java and Main.java in order to run the implementation
*
* Dinesh
*
* ____________ _____________ ______________
* |item "test1"| | item "test2"| | item "test3" |
* | next |-------->| next |----->| next |------>null
@dineshrajpurohit
dineshrajpurohit / singlyLinkedList.js
Last active December 29, 2015 13:59
Javascript implementation of Singly Linked List (basic)
/****************************************************************
* Singly Linked list implementation (Node as Objects) using javascript
*
* - Dins
*****************************************************************/
// Global Object DS - Data Structure
var DS = {};