0 votes
in Go Semantics Supplemental by
Which of the following code snippet is the correct representation of a Node in Linked List

a) type Node struct {

  value int

  next *Node

  prev *Node

}

b) type Node struct {

   value int Value2

   string prev *Node

}

c) type Node struct {

  Value int

  tail *Node

}

d) type Node struct {

  next *Node

  prev *Node

}

1 Answer

0 votes
by
a) type Node struct {

  value int

  next *Node

  prev *Node

}

Related questions

0 votes
asked Jul 13, 2022 in Go Semantics Supplemental by john ganales
0 votes
asked Jul 14, 2022 in Go Semantics Supplemental by john ganales
...