Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Big Java Early Objects
Quiz 16: Basic Data Structures
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 21
Multiple Choice
Suppose we maintain a linked list of length n in random element order.What would be the big-Oh notation for printing out those elements which occur exactly once in the list (without sorting the list) ?
Question 22
Multiple Choice
Suppose we maintain a linked list of length n in sorted order.What would be the big-Oh notation for the add operation?
Question 23
Multiple Choice
Given the partial LinkedList class declaration below, select a statement to complete the size method, which is designed to return the number of list elements.
Question 24
Multiple Choice
Given the partial LinkedList class declaration below, select an expression to complete the empty method, which is designed to return true if the list contains no elements.
Question 25
Multiple Choice
In a linked list data structure, when does the reference to the first node need to be updated? i.inserting into an empty list II.deleting from a list with one node III.deleting an inner node
Question 26
Multiple Choice
Suppose we maintain a linked list of length n in random element order.What would be the big-Oh notation for an algorithm that prints each list element and the number of times it occurs in the list (without sorting the list) ?
Question 27
Multiple Choice
Given the partial LinkedList class declaration below, select a statement to complete the printFirst method, which is designed to display the contents of the first list element.
Question 28
Multiple Choice
Suppose we maintain a linked list of length n in sorted order.What would be the big-Oh notation for printing out those elements that occur exactly once in the list?
Question 29
Multiple Choice
Suppose we maintain two linked lists of length n in random element order.What would be the big-Oh notation for the creating a third list that includes only elements common to both lists, without sorting the first two lists?