[Go] Linked list - Singly Linked List - Introduction from java to Go
Node Structure Code Java // Definition for singly-linked list. public class SinglyListNode { int val; SinglyListNode next; SinglyListNode(int x) { val = x; } } Go type SinglyListNode struct{ val int next *SinglyListNode }
Go/Leet Code
2022. 4. 16. 21:08