상세 컨텐츠

본문 제목

[Go] Linked list - Doubly Linked List from java to GO

Go/Leet Code

by Gopythor 2022. 5. 9. 03:06

본문

728x90
반응형

Java

// Definition for doubly-linked list.
class DoublyListNode {
    int val;
    DoublyListNode next, prev;
    DoublyListNode(int x) {val = x;}
}

Go

type DoublyListNode struct {
	val int
    next, prev *DoublyListNode
}
728x90
반응형

관련글 더보기

댓글 영역