Last active
July 2, 2022 20:03
-
-
Save RakhmedovRS/94bf17787d3873117997e9d3fa0a23e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ListNode { | |
/** Stores value in particular node */ | |
int val; | |
/** Pointer to the next node in the linked list */ | |
ListNode next; // | |
/** Different constructors */ | |
ListNode() {} | |
ListNode(int val) { this.val = val; } | |
ListNode(int val, ListNode next) { this.val = val; this.next = next; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment