STRUCTURE TIME Flashcards

1
Q

Write a list node class

A

public class ListNode{

 public int data
 public ListNode next; }
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does each list node object store?

A
  • one piece of integer data

- a reference to another list node

How well did you know this?
1
Not at all
2
3
4
5
Perfectly