What singly-linked list of nodes is accessible from n after the following state- ments have executed? Node n = new Node
Posted: Sun Jul 03, 2022 11:24 am
What singly-linked list of nodes is accessible from n after the following state- ments have executed? Node n = new Node ("a"); n = new Node ("b", n); n. next = new Node ("c", n.next); n = new Node ("d", n.next); n.next.next = new Node ("e", new Node("f")); A. [a] [c]→[d] → [e] → [f] B. [f] [e] → [d] → [c] → → [a] C. [c] → [d] → [e] → [f] D. [d] [c] → [e] → [f]