Skip to content

Commit

Permalink
feat: list node
Browse files Browse the repository at this point in the history
add list node for the problem based on lists data structure
  • Loading branch information
galaumang committed May 14, 2023
1 parent c7d517b commit 1f5d1ff
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions solutions-java/src/main/java/dsalgo/list/ListNode.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package dsalgo.list;

/**
* ListNode
* Object to represent List Node
*
* @author Umang Gala
*/
public class ListNode<T> {
T value;
ListNode<T> next;

/**
* Initialize the node with the value
*
* @param value value for the node
*/
ListNode(T value) {
this.value = value;
next = null;
}
}

0 comments on commit 1f5d1ff

Please sign in to comment.